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 <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18586>
This commit is contained in:
Adam Jackson 2022-09-13 16:39:07 -04:00 committed by Marge Bot
parent 14c6f716b4
commit 6c6a37ef94

View 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);
}