egl: replace _EGLDriver with _EGLDisplay->Driver in _eglGetSyncAttrib()
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6241>
This commit is contained in:

committed by
Marge Bot

parent
b9fb63ab03
commit
372c6c42af
@@ -2093,7 +2093,7 @@ _eglGetSyncAttribCommon(_EGLDisplay *disp, _EGLSync *s, EGLint attribute, EGLAtt
|
|||||||
disp->Extensions.KHR_fence_sync ||
|
disp->Extensions.KHR_fence_sync ||
|
||||||
disp->Extensions.ANDROID_native_fence_sync);
|
disp->Extensions.ANDROID_native_fence_sync);
|
||||||
|
|
||||||
ret = _eglGetSyncAttrib(drv, disp, s, attribute, value);
|
ret = _eglGetSyncAttrib(disp, s, attribute, value);
|
||||||
|
|
||||||
RETURN_EGL_EVAL(disp, ret);
|
RETURN_EGL_EVAL(disp, ret);
|
||||||
}
|
}
|
||||||
|
@@ -120,7 +120,7 @@ _eglInitSync(_EGLSync *sync, _EGLDisplay *disp, EGLenum type,
|
|||||||
|
|
||||||
|
|
||||||
EGLBoolean
|
EGLBoolean
|
||||||
_eglGetSyncAttrib(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSync *sync,
|
_eglGetSyncAttrib(_EGLDisplay *disp, _EGLSync *sync,
|
||||||
EGLint attribute, EGLAttrib *value)
|
EGLint attribute, EGLAttrib *value)
|
||||||
{
|
{
|
||||||
switch (attribute) {
|
switch (attribute) {
|
||||||
@@ -134,7 +134,7 @@ _eglGetSyncAttrib(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSync *sync,
|
|||||||
sync->Type == EGL_SYNC_CL_EVENT_KHR ||
|
sync->Type == EGL_SYNC_CL_EVENT_KHR ||
|
||||||
sync->Type == EGL_SYNC_REUSABLE_KHR ||
|
sync->Type == EGL_SYNC_REUSABLE_KHR ||
|
||||||
sync->Type == EGL_SYNC_NATIVE_FENCE_ANDROID))
|
sync->Type == EGL_SYNC_NATIVE_FENCE_ANDROID))
|
||||||
drv->ClientWaitSyncKHR(disp, sync, 0, 0);
|
disp->Driver->ClientWaitSyncKHR(disp, sync, 0, 0);
|
||||||
|
|
||||||
*value = sync->SyncStatus;
|
*value = sync->SyncStatus;
|
||||||
break;
|
break;
|
||||||
|
@@ -58,7 +58,7 @@ _eglInitSync(_EGLSync *sync, _EGLDisplay *disp, EGLenum type,
|
|||||||
|
|
||||||
|
|
||||||
extern EGLBoolean
|
extern EGLBoolean
|
||||||
_eglGetSyncAttrib(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSync *sync,
|
_eglGetSyncAttrib(_EGLDisplay *disp, _EGLSync *sync,
|
||||||
EGLint attribute, EGLAttrib *value);
|
EGLint attribute, EGLAttrib *value);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user