diff options
author | Eric Engestrom <[email protected]> | 2019-02-02 11:38:45 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-02-06 11:53:24 +0000 |
commit | 54fa5eceae237598d6fb329ec7cbe1d3a85e7d39 (patch) | |
tree | 870badc295851feaba8cf7e43318ed9542a7c0a7 /src/egl/main/eglsync.c | |
parent | a81d5587d6ad20506c13199a1f4573fdf6350709 (diff) |
egl: use coherent variable names
`EGLDisplay` variables (the opaque Khronos type) have mostly been
consistently called `dpy`, as this is the name used in the Khronos
specs.
However, `_EGLDisplay` variables (our internal struct) have been
randomly called `dpy` when there was no local variable clash with
`EGLDisplay`s, and `disp` otherwise.
Let's be consistent and use `dpy` for the Khronos type, and `disp`
for our struct.
Signed-off-by: Eric Engestrom <[email protected]>
Acked-by: Emil Velikov <[email protected]>
Acked-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/egl/main/eglsync.c')
-rw-r--r-- | src/egl/main/eglsync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/egl/main/eglsync.c b/src/egl/main/eglsync.c index cb931b81682..d3c0cf4aa6f 100644 --- a/src/egl/main/eglsync.c +++ b/src/egl/main/eglsync.c @@ -83,12 +83,12 @@ _eglParseSyncAttribList(_EGLSync *sync, const EGLAttrib *attrib_list) EGLBoolean -_eglInitSync(_EGLSync *sync, _EGLDisplay *dpy, EGLenum type, +_eglInitSync(_EGLSync *sync, _EGLDisplay *disp, EGLenum type, const EGLAttrib *attrib_list) { EGLint err; - _eglInitResource(&sync->Resource, sizeof(*sync), dpy); + _eglInitResource(&sync->Resource, sizeof(*sync), disp); sync->Type = type; sync->SyncStatus = EGL_UNSIGNALED_KHR; sync->SyncFd = EGL_NO_NATIVE_FENCE_FD_ANDROID; @@ -120,7 +120,7 @@ _eglInitSync(_EGLSync *sync, _EGLDisplay *dpy, EGLenum type, EGLBoolean -_eglGetSyncAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync, +_eglGetSyncAttrib(_EGLDriver *drv, _EGLDisplay *disp, _EGLSync *sync, EGLint attribute, EGLAttrib *value) { switch (attribute) { @@ -134,7 +134,7 @@ _eglGetSyncAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync, sync->Type == EGL_SYNC_CL_EVENT_KHR || sync->Type == EGL_SYNC_REUSABLE_KHR || sync->Type == EGL_SYNC_NATIVE_FENCE_ANDROID)) - drv->API.ClientWaitSyncKHR(drv, dpy, sync, 0, 0); + drv->API.ClientWaitSyncKHR(drv, disp, sync, 0, 0); *value = sync->SyncStatus; break; |