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:
committed by
Marge Bot
parent
fc510ca674
commit
455219979e
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user