summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2013-03-30 23:22:19 -0700
committerJesse Hall <jessehall@google.com>2013-03-30 23:22:19 -0700
commit441f69463ec595ad42fdaad1bbfbb0f7a932437c (patch)
treea7812c0e7c2aa6be449c147d91e80ab00cd324b3 /opengl/libs/EGL
parent86e392e9b3b92e3a58d2fb65eef1552108941a76 (diff)
downloadframeworks_native-441f69463ec595ad42fdaad1bbfbb0f7a932437c.tar.gz
frameworks_native-441f69463ec595ad42fdaad1bbfbb0f7a932437c.tar.bz2
frameworks_native-441f69463ec595ad42fdaad1bbfbb0f7a932437c.zip
Fix MIPS assembly variable names to not conflict with GL API parameter names
Change-Id: I8e93fb55018de53a596cb176d48dbfdf1fd396e4
Diffstat (limited to 'opengl/libs/EGL')
-rw-r--r--opengl/libs/EGL/getProcAddress.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/opengl/libs/EGL/getProcAddress.cpp b/opengl/libs/EGL/getProcAddress.cpp
index d23da7ad6..1909232ed 100644
--- a/opengl/libs/EGL/getProcAddress.cpp
+++ b/opengl/libs/EGL/getProcAddress.cpp
@@ -64,9 +64,9 @@ namespace android {
#define API_ENTRY(_api) __attribute__((noinline)) _api
#define CALL_GL_EXTENSION_API(_api, ...) \
- register unsigned int t0 asm("t0"); \
- register unsigned int fn asm("t1"); \
- register unsigned int tls asm("v1"); \
+ register unsigned int _t0 asm("t0"); \
+ register unsigned int _fn asm("t1"); \
+ register unsigned int _tls asm("v1"); \
asm volatile( \
".set push\n\t" \
".set noreorder\n\t" \
@@ -81,9 +81,9 @@ namespace android {
"j %[fn]\n\t" \
" nop\n\t" \
".set pop\n\t" \
- : [fn] "=c"(fn), \
- [tls] "=&r"(tls), \
- [t0] "=&r"(t0) \
+ : [fn] "=c"(_fn), \
+ [tls] "=&r"(_tls), \
+ [t0] "=&r"(_t0) \
: [OPENGL_API] "I"(TLS_SLOT_OPENGL_API*4), \
[API] "I"(__builtin_offsetof(gl_hooks_t, \
ext.extensions[_api])) \