egl: fix dri2_from_names() call

The offset argument is `int *offsets`.

!31406 pointed this out and I checked for other instances of the same bug.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31484>
This commit is contained in:
Eric Engestrom 2024-10-02 14:59:37 +02:00 committed by Marge Bot
parent fd0ff1502a
commit 842a7b2821

View file

@ -2184,9 +2184,10 @@ dri2_create_image_mesa_drm_buffer(_EGLDisplay *disp, _EGLContext *ctx,
return NULL;
}
int offset = 0;
dri_image = dri2_from_names(
dri2_dpy->dri_screen_render_gpu, attrs.Width, attrs.Height, fourcc,
(int *) &name, 1, (int *) &pitch, 0, NULL);
(int *) &name, 1, (int *) &pitch, &offset, NULL);
return dri2_create_image_from_dri(disp, dri_image);
}