From 842a7b2821e21b5869160025b3efd85626e87578 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 2 Oct 2024 14:59:37 +0200 Subject: [PATCH] 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: --- src/egl/drivers/dri2/egl_dri2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 0c8356a57d9..6836af819af 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -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); }