Jesse Hall | 4774338 | 2013-02-08 11:13:46 -0800 | [diff] [blame] | 1 | /* |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 2 | ** Copyright 2007, The Android Open Source Project |
| 3 | ** |
Jesse Hall | 4774338 | 2013-02-08 11:13:46 -0800 | [diff] [blame] | 4 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ** you may not use this file except in compliance with the License. |
| 6 | ** You may obtain a copy of the License at |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 7 | ** |
Jesse Hall | 4774338 | 2013-02-08 11:13:46 -0800 | [diff] [blame] | 8 | ** http://www.apache.org/licenses/LICENSE-2.0 |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 9 | ** |
Jesse Hall | 4774338 | 2013-02-08 11:13:46 -0800 | [diff] [blame] | 10 | ** Unless required by applicable law or agreed to in writing, software |
| 11 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ** See the License for the specific language governing permissions and |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 14 | ** limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #include <ctype.h> |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 18 | #include <errno.h> |
Mark Salyzyn | a5e161b | 2016-09-29 08:08:05 -0700 | [diff] [blame] | 19 | #include <string.h> |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 20 | #include <sys/ioctl.h> |
| 21 | |
Mathias Agopian | 5f1af04 | 2017-03-09 18:50:05 -0800 | [diff] [blame] | 22 | #include <log/log.h> |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 23 | #include <cutils/properties.h> |
| 24 | |
Mathias Agopian | 39c24a2 | 2013-04-04 23:17:56 -0700 | [diff] [blame] | 25 | #include "../hooks.h" |
| 26 | #include "../egl_impl.h" |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 27 | |
| 28 | using namespace android; |
| 29 | |
| 30 | // ---------------------------------------------------------------------------- |
| 31 | // Actual GL entry-points |
| 32 | // ---------------------------------------------------------------------------- |
| 33 | |
| 34 | #undef API_ENTRY |
| 35 | #undef CALL_GL_API |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 36 | #undef CALL_GL_API_INTERNAL_CALL |
| 37 | #undef CALL_GL_API_INTERNAL_SET_RETURN_VALUE |
| 38 | #undef CALL_GL_API_INTERNAL_DO_RETURN |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 39 | #undef CALL_GL_API_RETURN |
| 40 | |
Jesse Hall | 30a41aa | 2014-05-30 23:32:12 -0700 | [diff] [blame] | 41 | #if USE_SLOW_BINDING |
| 42 | |
| 43 | #define API_ENTRY(_api) _api |
| 44 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 45 | #define CALL_GL_API_INTERNAL_CALL(_api, ...) \ |
Jesse Hall | 30a41aa | 2014-05-30 23:32:12 -0700 | [diff] [blame] | 46 | gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl; \ |
| 47 | if (_c) return _c->_api(__VA_ARGS__); |
| 48 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 49 | #define CALL_GL_API_INTERNAL_SET_RETURN_VALUE return 0; |
| 50 | |
| 51 | // This stays blank, since void functions will implicitly return, and |
| 52 | // all of the other functions will return 0 based on the previous macro. |
| 53 | #define CALL_GL_API_INTERNAL_DO_RETURN |
| 54 | |
Jesse Hall | 30a41aa | 2014-05-30 23:32:12 -0700 | [diff] [blame] | 55 | #elif defined(__arm__) |
Duane Sand | 46b4253 | 2013-03-27 10:58:06 -0700 | [diff] [blame] | 56 | |
Elliott Hughes | 288870e | 2013-02-13 17:30:54 -0800 | [diff] [blame] | 57 | #define GET_TLS(reg) "mrc p15, 0, " #reg ", c13, c0, 3 \n" |
Mathias Agopian | 673d2db | 2009-10-14 02:39:53 -0700 | [diff] [blame] | 58 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 59 | #define API_ENTRY(_api) __attribute__((naked,noinline)) _api |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 60 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 61 | #define CALL_GL_API_INTERNAL_CALL(_api, ...) \ |
| 62 | asm volatile( \ |
| 63 | GET_TLS(r12) \ |
| 64 | "ldr r12, [r12, %[tls]] \n" \ |
| 65 | "cmp r12, #0 \n" \ |
| 66 | "ldrne pc, [r12, %[api]] \n" \ |
| 67 | : \ |
| 68 | : [tls] "J"(TLS_SLOT_OPENGL_API*4), \ |
| 69 | [api] "J"(__builtin_offsetof(gl_hooks_t, gl._api)) \ |
| 70 | : "r0", "r1", "r2", "r3", "r12" \ |
| 71 | ); |
| 72 | |
| 73 | #define CALL_GL_API_INTERNAL_SET_RETURN_VALUE \ |
| 74 | asm volatile( \ |
| 75 | "mov r0, #0 \n" \ |
| 76 | : \ |
| 77 | : \ |
| 78 | : "r0" \ |
| 79 | ); |
| 80 | |
| 81 | |
| 82 | #define CALL_GL_API_INTERNAL_DO_RETURN \ |
| 83 | asm volatile( \ |
| 84 | "bx lr \n" \ |
| 85 | : \ |
| 86 | : \ |
| 87 | : "r0" \ |
| 88 | ); |
Mathias Agopian | 673d2db | 2009-10-14 02:39:53 -0700 | [diff] [blame] | 89 | |
Jesse Hall | 30a41aa | 2014-05-30 23:32:12 -0700 | [diff] [blame] | 90 | #elif defined(__aarch64__) |
| 91 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 92 | #define API_ENTRY(_api) __attribute__((naked,noinline)) _api |
Jesse Hall | 30a41aa | 2014-05-30 23:32:12 -0700 | [diff] [blame] | 93 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 94 | #define CALL_GL_API_INTERNAL_CALL(_api, ...) \ |
Jesse Hall | 30a41aa | 2014-05-30 23:32:12 -0700 | [diff] [blame] | 95 | asm volatile( \ |
| 96 | "mrs x16, tpidr_el0\n" \ |
| 97 | "ldr x16, [x16, %[tls]]\n" \ |
| 98 | "cbz x16, 1f\n" \ |
| 99 | "ldr x16, [x16, %[api]]\n" \ |
| 100 | "br x16\n" \ |
| 101 | "1:\n" \ |
| 102 | : \ |
| 103 | : [tls] "i" (TLS_SLOT_OPENGL_API * sizeof(void*)), \ |
| 104 | [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \ |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 105 | : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x16" \ |
| 106 | ); |
| 107 | |
| 108 | #define CALL_GL_API_INTERNAL_SET_RETURN_VALUE \ |
| 109 | asm volatile( \ |
| 110 | "mov w0, wzr \n" \ |
| 111 | : \ |
| 112 | : \ |
| 113 | : "w0" \ |
| 114 | ); |
| 115 | |
| 116 | #define CALL_GL_API_INTERNAL_DO_RETURN \ |
| 117 | asm volatile( \ |
| 118 | "ret \n" \ |
| 119 | : \ |
| 120 | : \ |
| 121 | : \ |
Jesse Hall | 30a41aa | 2014-05-30 23:32:12 -0700 | [diff] [blame] | 122 | ); |
| 123 | |
| 124 | #elif defined(__i386__) |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 125 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 126 | #define API_ENTRY(_api) __attribute__((naked,noinline)) _api |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 127 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 128 | #define CALL_GL_API_INTERNAL_CALL(_api, ...) \ |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 129 | __asm__ volatile( \ |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 130 | "mov %%gs:0, %%eax\n" \ |
| 131 | "mov %P[tls](%%eax), %%eax\n" \ |
| 132 | "test %%eax, %%eax\n" \ |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 133 | "je 1f\n" \ |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 134 | "jmp *%P[api](%%eax)\n" \ |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 135 | "1:\n" \ |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 136 | : \ |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 137 | : [tls] "i" (TLS_SLOT_OPENGL_API*sizeof(void*)), \ |
| 138 | [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \ |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 139 | : "cc", "%eax" \ |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 140 | ); |
| 141 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 142 | #define CALL_GL_API_INTERNAL_SET_RETURN_VALUE \ |
| 143 | __asm__ volatile( \ |
| 144 | "xor %%eax, %%eax\n" \ |
| 145 | : \ |
| 146 | : \ |
| 147 | : "%eax" \ |
| 148 | ); |
| 149 | |
| 150 | #define CALL_GL_API_INTERNAL_DO_RETURN \ |
| 151 | __asm__ volatile( \ |
| 152 | "ret\n" \ |
| 153 | : \ |
| 154 | : \ |
| 155 | : \ |
| 156 | ); |
| 157 | |
Jesse Hall | 30a41aa | 2014-05-30 23:32:12 -0700 | [diff] [blame] | 158 | #elif defined(__x86_64__) |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 159 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 160 | #define API_ENTRY(_api) __attribute__((naked,noinline)) _api |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 161 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 162 | #define CALL_GL_API_INTERNAL_CALL(_api, ...) \ |
| 163 | __asm__ volatile( \ |
| 164 | "mov %%fs:0, %%rax\n" \ |
| 165 | "mov %P[tls](%%rax), %%rax\n" \ |
| 166 | "test %%rax, %%rax\n" \ |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 167 | "je 1f\n" \ |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 168 | "jmp *%P[api](%%rax)\n" \ |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 169 | "1:\n" \ |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 170 | : \ |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 171 | : [tls] "i" (TLS_SLOT_OPENGL_API*sizeof(void*)), \ |
| 172 | [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \ |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 173 | : "cc", "%rdi", "%rsi", "%rdx", "%rcx", "%r8", "%r9", \ |
| 174 | "%xmm0", "%xmm1", "%xmm2", "%xmm3", "%xmm4", "%xmm5", \ |
| 175 | "%xmm6", "%xmm7" \ |
| 176 | ); |
| 177 | |
| 178 | #define CALL_GL_API_INTERNAL_SET_RETURN_VALUE \ |
| 179 | __asm__ volatile( \ |
| 180 | "xor %%eax, %%eax\n" \ |
| 181 | : \ |
| 182 | : \ |
| 183 | : "%eax" \ |
| 184 | ); |
| 185 | |
| 186 | #define CALL_GL_API_INTERNAL_DO_RETURN \ |
| 187 | __asm__ volatile( \ |
| 188 | "retq\n" \ |
| 189 | : \ |
| 190 | : \ |
| 191 | : \ |
| 192 | ); |
mwajdecz | c80aafa | 2014-05-26 13:56:37 +0200 | [diff] [blame] | 193 | |
Xia Lifang | fd22314 | 2022-10-12 20:40:37 +0800 | [diff] [blame] | 194 | #elif defined(__riscv) |
Duane Sand | 6701fbe | 2014-11-26 13:17:40 -0800 | [diff] [blame] | 195 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 196 | #define API_ENTRY(_api) __attribute__((naked,noinline)) _api |
Duane Sand | 6701fbe | 2014-11-26 13:17:40 -0800 | [diff] [blame] | 197 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 198 | #define CALL_GL_API_INTERNAL_CALL(_api, ...) \ |
Duane Sand | 46b4253 | 2013-03-27 10:58:06 -0700 | [diff] [blame] | 199 | asm volatile( \ |
Xia Lifang | fd22314 | 2022-10-12 20:40:37 +0800 | [diff] [blame] | 200 | "mv t0, tp\n" \ |
| 201 | "li t1, %[tls]\n" \ |
| 202 | "add t0, t0, t1\n" \ |
| 203 | "ld t0, 0(t0)\n" \ |
| 204 | "beqz t0, 1f\n" \ |
| 205 | "li t1, %[api]\n" \ |
| 206 | "add t0, t0, t1\n" \ |
| 207 | "ld t0, 0(t0)\n" \ |
| 208 | "jalr x0, t0\n" \ |
| 209 | "1:\n" \ |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 210 | : \ |
Xia Lifang | fd22314 | 2022-10-12 20:40:37 +0800 | [diff] [blame] | 211 | : [tls] "i"(TLS_SLOT_OPENGL_API*sizeof(void *)), \ |
| 212 | [api] "i"(__builtin_offsetof(gl_hooks_t, gl._api)) \ |
| 213 | : "t0", "t1", "t2", "a0", "a1", "a2", "a3", "a4", \ |
| 214 | "a5", "t6", "t3", "t4", "t5", "t6" \ |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 215 | ); |
| 216 | |
Xia Lifang | fd22314 | 2022-10-12 20:40:37 +0800 | [diff] [blame] | 217 | #define CALL_GL_API_INTERNAL_SET_RETURN_VALUE \ |
| 218 | asm volatile( \ |
| 219 | "li a0, 0\n" \ |
| 220 | : \ |
| 221 | : \ |
| 222 | : "a0" \ |
| 223 | ); |
| 224 | |
| 225 | #define CALL_GL_API_INTERNAL_DO_RETURN \ |
| 226 | asm volatile( \ |
| 227 | "ret\n" \ |
| 228 | : \ |
| 229 | : \ |
| 230 | : \ |
| 231 | ); |
Duane Sand | 46b4253 | 2013-03-27 10:58:06 -0700 | [diff] [blame] | 232 | |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 233 | #endif |
| 234 | |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 235 | #define CALL_GL_API(_api, ...) \ |
| 236 | CALL_GL_API_INTERNAL_CALL(_api, __VA_ARGS__) \ |
| 237 | CALL_GL_API_INTERNAL_DO_RETURN |
| 238 | |
Mathias Agopian | e0ea89c | 2013-06-14 19:08:36 -0700 | [diff] [blame] | 239 | #define CALL_GL_API_RETURN(_api, ...) \ |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 240 | CALL_GL_API_INTERNAL_CALL(_api, __VA_ARGS__) \ |
| 241 | CALL_GL_API_INTERNAL_SET_RETURN_VALUE \ |
| 242 | CALL_GL_API_INTERNAL_DO_RETURN |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 243 | |
| 244 | extern "C" { |
Jesse Hall | bbbddb8 | 2014-05-13 21:13:14 -0700 | [diff] [blame] | 245 | #pragma GCC diagnostic ignored "-Wunused-parameter" |
Jesse Hall | 4c0596f | 2014-05-13 16:48:35 -0700 | [diff] [blame] | 246 | #include "gl2_api.in" |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 247 | #include "gl2ext_api.in" |
Jesse Hall | bbbddb8 | 2014-05-13 21:13:14 -0700 | [diff] [blame] | 248 | #pragma GCC diagnostic warning "-Wunused-parameter" |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 249 | } |
| 250 | |
| 251 | #undef API_ENTRY |
| 252 | #undef CALL_GL_API |
Stephen Hines | 3e8fce4 | 2016-03-22 23:35:27 -0700 | [diff] [blame] | 253 | #undef CALL_GL_API_INTERNAL_CALL |
| 254 | #undef CALL_GL_API_INTERNAL_SET_RETURN_VALUE |
| 255 | #undef CALL_GL_API_INTERNAL_DO_RETURN |
Mathias Agopian | b1a39d6 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 256 | #undef CALL_GL_API_RETURN |
| 257 | |
Mathias Agopian | 48d438d | 2012-01-28 21:44:00 -0800 | [diff] [blame] | 258 | /* |
Alistair Strachan | edfe72e | 2015-05-22 14:10:09 -0700 | [diff] [blame] | 259 | * glGetString() and glGetStringi() are special because we expose some |
| 260 | * extensions in the wrapper. Also, wrapping glGetXXX() is required because |
| 261 | * the value returned for GL_NUM_EXTENSIONS may have been altered by the |
| 262 | * injection of the additional extensions. |
Mathias Agopian | 48d438d | 2012-01-28 21:44:00 -0800 | [diff] [blame] | 263 | */ |
| 264 | |
Alistair Strachan | edfe72e | 2015-05-22 14:10:09 -0700 | [diff] [blame] | 265 | extern "C" { |
| 266 | const GLubyte * __glGetString(GLenum name); |
| 267 | const GLubyte * __glGetStringi(GLenum name, GLuint index); |
| 268 | void __glGetBooleanv(GLenum pname, GLboolean * data); |
| 269 | void __glGetFloatv(GLenum pname, GLfloat * data); |
| 270 | void __glGetIntegerv(GLenum pname, GLint * data); |
| 271 | void __glGetInteger64v(GLenum pname, GLint64 * data); |
| 272 | } |
Mathias Agopian | 48d438d | 2012-01-28 21:44:00 -0800 | [diff] [blame] | 273 | |
Alistair Strachan | edfe72e | 2015-05-22 14:10:09 -0700 | [diff] [blame] | 274 | const GLubyte * glGetString(GLenum name) { |
Cody Northrop | 68d1035 | 2018-10-15 07:22:09 -0600 | [diff] [blame] | 275 | egl_connection_t* const cnx = egl_get_connection(); |
| 276 | return cnx->platform.glGetString(name); |
Mathias Agopian | 48d438d | 2012-01-28 21:44:00 -0800 | [diff] [blame] | 277 | } |
Alistair Strachan | edfe72e | 2015-05-22 14:10:09 -0700 | [diff] [blame] | 278 | |
| 279 | const GLubyte * glGetStringi(GLenum name, GLuint index) { |
Cody Northrop | 68d1035 | 2018-10-15 07:22:09 -0600 | [diff] [blame] | 280 | egl_connection_t* const cnx = egl_get_connection(); |
| 281 | return cnx->platform.glGetStringi(name, index); |
Alistair Strachan | edfe72e | 2015-05-22 14:10:09 -0700 | [diff] [blame] | 282 | } |
| 283 | |
| 284 | void glGetBooleanv(GLenum pname, GLboolean * data) { |
Cody Northrop | 68d1035 | 2018-10-15 07:22:09 -0600 | [diff] [blame] | 285 | egl_connection_t* const cnx = egl_get_connection(); |
| 286 | return cnx->platform.glGetBooleanv(pname, data); |
Alistair Strachan | edfe72e | 2015-05-22 14:10:09 -0700 | [diff] [blame] | 287 | } |
| 288 | |
| 289 | void glGetFloatv(GLenum pname, GLfloat * data) { |
Cody Northrop | 68d1035 | 2018-10-15 07:22:09 -0600 | [diff] [blame] | 290 | egl_connection_t* const cnx = egl_get_connection(); |
| 291 | return cnx->platform.glGetFloatv(pname, data); |
Alistair Strachan | edfe72e | 2015-05-22 14:10:09 -0700 | [diff] [blame] | 292 | } |
| 293 | |
| 294 | void glGetIntegerv(GLenum pname, GLint * data) { |
Cody Northrop | 68d1035 | 2018-10-15 07:22:09 -0600 | [diff] [blame] | 295 | egl_connection_t* const cnx = egl_get_connection(); |
| 296 | return cnx->platform.glGetIntegerv(pname, data); |
Alistair Strachan | edfe72e | 2015-05-22 14:10:09 -0700 | [diff] [blame] | 297 | } |
| 298 | |
| 299 | void glGetInteger64v(GLenum pname, GLint64 * data) { |
Cody Northrop | 68d1035 | 2018-10-15 07:22:09 -0600 | [diff] [blame] | 300 | egl_connection_t* const cnx = egl_get_connection(); |
| 301 | return cnx->platform.glGetInteger64v(pname, data); |
Alistair Strachan | edfe72e | 2015-05-22 14:10:09 -0700 | [diff] [blame] | 302 | } |