egl/wayland: Always initialise fd_display_gpu

Set it to an invalid value, rather than leaving it to be stdout or
something.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24347>
(cherry picked from commit 449e5bad7c)
This commit is contained in:
Daniel Stone 2023-07-27 00:36:05 +01:00 committed by Eric Engestrom
parent ab6e8f6b1a
commit c795abedd2
2 changed files with 2 additions and 1 deletions

View file

@ -166,7 +166,7 @@
"description": "egl/wayland: Always initialise fd_display_gpu",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -2772,6 +2772,7 @@ dri2_initialize_wayland_swrast(_EGLDisplay *disp)
return _eglError(EGL_BAD_ALLOC, "eglInitialize");
dri2_dpy->fd_render_gpu = -1;
dri2_dpy->fd_display_gpu = -1;
disp->DriverData = (void *) dri2_dpy;
if (dri2_wl_formats_init(&dri2_dpy->formats) < 0)