egl/dri2: Respect the arguments to dri2_set_blob_cache_funcs
authorAdam Jackson <ajax@redhat.com>
Tue, 13 Sep 2022 20:39:07 +0000 (16:39 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Sep 2022 14:23:47 +0000 (14:23 +0000)
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 <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18586>

src/egl/drivers/dri2/egl_dri2.c

index 7614ff5..d9502ea 100644 (file)
@@ -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);
 }