Skip to content

Commit

Permalink
pass build for angle
Browse files Browse the repository at this point in the history
Signed-off-by: Wang Chen <[email protected]>
Signed-off-by: McKnight22 <[email protected]>
  • Loading branch information
unicornx committed Feb 28, 2023
1 parent e9827ae commit d12176e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libGLESv2/global_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ constexpr size_t kAndroidOpenGLTlsSlot = 3;
__asm__("mov %%fs:0, %0" : "=r"(__val)); \
__val; \
})
# elif (defined(__riscv) && (__riscv_xlen == 64))
# define ANGLE_ANDROID_GET_GL_TLS() \
({ \
void** __val; \
__asm__("mv %0, tp" : "=r"(__val)); \
__val; \
})
# else
# error unsupported architecture
# endif
Expand Down

0 comments on commit d12176e

Please sign in to comment.