mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
X11: fix crash of gnome-shell if mesa is compiled with legacy-x11=dri2
X11 starts up if Mesa is compiled with legacy-x11=dri2 and shows the desktop. It crashes with segfault as soon as an application is started. At src/egl/drivers/dri2/platform_x11.c function dri2_from_names (at src/gallium/frontends/dri/dri2.c) should be called with offset address instead of with offset value. Signed-off-by: GKraats <vd.kraats@hccnet.nl> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31406>
This commit is contained in:
parent
210345cf09
commit
6c84103276
1 changed files with 2 additions and 1 deletions
|
|
@ -1345,10 +1345,11 @@ dri2_create_image_khr_pixmap(_EGLDisplay *disp, _EGLContext *ctx,
|
|||
|
||||
_eglInitImage(&dri2_img->base, disp);
|
||||
|
||||
int offset = 0;
|
||||
dri2_img->dri_image = dri2_from_names(
|
||||
dri2_dpy->dri_screen_render_gpu, buffers_reply->width,
|
||||
buffers_reply->height, fourcc, (int *) &buffers[0].name, 1,
|
||||
(int *) &buffers[0].pitch, 0, dri2_img);
|
||||
(int *) &buffers[0].pitch, &offset, dri2_img);
|
||||
|
||||
free(buffers_reply);
|
||||
free(geometry_reply);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue