egl: init dri3 version info during screen creation
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 10 Oct 2023 11:54:17 +0000 (07:54 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 19 Oct 2023 17:41:42 +0000 (17:41 +0000)
no functional changes

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25640>

src/egl/drivers/dri2/egl_dri2.c

index 3f0c3ee..a4d9e5e 100644 (file)
@@ -1231,6 +1231,14 @@ dri2_display_create(void)
 
    dri2_dpy->fd_render_gpu = -1;
    dri2_dpy->fd_display_gpu = -1;
+
+#ifdef HAVE_DRI3_MODIFIERS
+   dri2_dpy->dri3_major_version = -1;
+   dri2_dpy->dri3_minor_version = -1;
+   dri2_dpy->present_major_version = -1;
+   dri2_dpy->present_minor_version = -1;
+#endif
+
    return dri2_dpy;
 }