Summary: | Wayland EGL do not fallback to software rendering anymore when the wl_drm interface is not available | ||
---|---|---|---|
Product: | Mesa | Reporter: | Cédric Legrand <legrand.cedric.01> |
Component: | EGL/Wayland | Assignee: | Wayland bug list <wayland-bugs> |
Status: | RESOLVED FIXED | QA Contact: | mesa-dev |
Severity: | major | ||
Priority: | medium | CC: | emil.l.velikov, legrand.cedric.01 |
Version: | 17.0 | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Cédric Legrand
2017-02-13 12:05:08 UTC
DRM format codes are identical to wl_shm format codes, except for argb8888 and xrgb8888. It is very unfortunate to have these exceptions, but they are there. I believe that the Mesa commit: commit cb5e799448c959fa9f0d7ea76999ac6f8c0ad88e Author: Emil Velikov <emil.velikov@collabora.com> Date: Mon Nov 28 18:25:19 2016 +0000 egl/wayland: unify dri2_wl_create_surface implementations is causing this regression by dropping the special-casing of the two formats that differ between DRM fourccs and wl_shm formats. WL_DRM_FORMAT_XRGB8888 != WL_SHM_FORMAT_XRGB8888 WL_DRM_FORMAT_ARGB8888 != WL_SHM_FORMAT_ARGB8888 (In reply to Pekka Paalanen from comment #2) > I believe that the Mesa commit: > > commit cb5e799448c959fa9f0d7ea76999ac6f8c0ad88e > Author: Emil Velikov <emil.velikov@collabora.com> > Date: Mon Nov 28 18:25:19 2016 +0000 > > egl/wayland: unify dri2_wl_create_surface implementations > > is causing this regression by dropping the special-casing of the two formats > that differ between DRM fourccs and wl_shm formats. > > WL_DRM_FORMAT_XRGB8888 != WL_SHM_FORMAT_XRGB8888 > WL_DRM_FORMAT_ARGB8888 != WL_SHM_FORMAT_ARGB8888 I also believe you're right, and sent this patch earlier: https://lists.freedesktop.org/archives/mesa-dev/2017-February/144133.html I'd attach it, but Chrome seems to be allergic to file dialogs atm. I applied Daniel's patch from comment #3 on Mesa 17.0.0, I can confirm that it fixes the issue, thanks a lot. Unfortunately, it did not have time to land in the final release... I don't know if you want to close this issue now or wait for the patch to be merged, so I will let you do it. Just realised that we forgot the bugzilla tag in the patch :-( The following patch was merged and should address the issue. Thanks for the help gents. commit a1727aa75ed252cd19c296ccf83cb595be971744 Author: Daniel Stone <daniels@collabora.com> Date: Mon Feb 13 14:06:10 2017 +0000 egl/wayland: Don't use DRM format codes for SHM |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.