Module: Mesa Branch: main Commit: 6c6a37ef941af060c90d17ceddf4ab40b0527ce1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c6a37ef941af060c90d17ceddf4ab40b0527ce1
Author: Adam Jackson <[email protected]> Date: Tue Sep 13 16:39:07 2022 -0400 egl/dri2: Respect the arguments to dri2_set_blob_cache_funcs This is no functional change, since this is effectively what the caller is passing in, but it's still a layering violation. Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18586> --- src/egl/drivers/dri2/egl_dri2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 7614ff5a798..d9502eaeb0a 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -3648,9 +3648,7 @@ dri2_set_blob_cache_funcs(_EGLDisplay *disp, EGLGetBlobFuncANDROID get) { struct dri2_egl_display *dri2_dpy = dri2_egl_display_lock(disp); - dri2_dpy->blob->set_cache_funcs(dri2_dpy->dri_screen, - disp->BlobCacheSet, - disp->BlobCacheGet); + dri2_dpy->blob->set_cache_funcs(dri2_dpy->dri_screen, set, get); mtx_unlock(&dri2_dpy->lock); }
