egl: replace display_name checks with swrast checks

the only time when display_name isn't set is with true swrast

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472>
This commit is contained in:
Mike Blumenkrantz
2024-07-29 10:20:40 -04:00
committed by Marge Bot
parent fc510ca674
commit 455219979e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -630,7 +630,7 @@ dri2_set_WL_bind_wayland_display(_EGLDisplay *disp)
#ifdef HAVE_WAYLAND_PLATFORM
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
if (dri2_dpy->device_name && dri2_dpy->image) {
if (!dri2_dpy->swrast && dri2_dpy->image) {
if (dri2_dpy->image->base.version >= 10 &&
dri2_dpy->image->getCapabilities != NULL) {
int capabilities;
+1 -1
View File
@@ -226,7 +226,7 @@ dri3_authenticate(_EGLDisplay *disp, uint32_t id)
#ifdef HAVE_WAYLAND_PLATFORM
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
if (dri2_dpy->device_name) {
if (!dri2_dpy->swrast) {
_eglLog(_EGL_WARNING,
"Wayland client render node authentication is unnecessary");
return 0;