diff options
author | Elliott Hughes <enh@google.com> | 2013-02-13 17:30:54 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-02-13 17:30:54 -0800 |
commit | 288870ebc3da8121b7a237a53280bd8b931b7a2f (patch) | |
tree | b5c73c8ed31a810b18e62da2e33f2948b09867f5 /opengl/libs/GLES2 | |
parent | 873ab60e94811488caea1906eb98133329a3e28f (diff) | |
download | frameworks_native-288870ebc3da8121b7a237a53280bd8b931b7a2f.zip frameworks_native-288870ebc3da8121b7a237a53280bd8b931b7a2f.tar.gz frameworks_native-288870ebc3da8121b7a237a53280bd8b931b7a2f.tar.bz2 |
Simplify OpenGL TLS access on ARM.
bionic now assumes the TLS register is available, so OpenGL can too.
Change-Id: If2b56a4c08de9f887759b78f70022026a181dc47
Diffstat (limited to 'opengl/libs/GLES2')
-rw-r--r-- | opengl/libs/GLES2/gl2.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/opengl/libs/GLES2/gl2.cpp b/opengl/libs/GLES2/gl2.cpp index 55ef499..fca42ec 100644 --- a/opengl/libs/GLES2/gl2.cpp +++ b/opengl/libs/GLES2/gl2.cpp @@ -41,14 +41,7 @@ using namespace android; #if USE_FAST_TLS_KEY - #ifdef HAVE_ARM_TLS_REGISTER - #define GET_TLS(reg) \ - "mrc p15, 0, " #reg ", c13, c0, 3 \n" - #else - #define GET_TLS(reg) \ - "mov " #reg ", #0xFFFF0FFF \n" \ - "ldr " #reg ", [" #reg ", #-15] \n" - #endif + #define GET_TLS(reg) "mrc p15, 0, " #reg ", c13, c0, 3 \n" #define API_ENTRY(_api) __attribute__((naked)) _api |