Tested with a hacked weston (to add xbgr2101010 support) under x11 and drm backend (with wl_drm and wl_dmabuf). All colors are displaying correctly, and "glmark2-wayland -d" confirms use of a RGBA 10-10-10-2 config. Also works with DRI_PRIME=1 for renderoffload to a AMD gpu.
It did need some more patches to work though. I'll send out a series on top of your patches shortly to complete this. Reviewed-and-Tested-by: Mario Kleiner <mario.kleiner...@gmail.com> On Fri, Mar 9, 2018 at 7:15 PM, Eric Engestrom <eric.engest...@imgtec.com> wrote: > On Thursday, 2018-03-08 17:36:39 +0000, Daniel Stone wrote: >> Add support for XBGR2101010 and ABGR2101010. >> >> Signed-off-by: Daniel Stone <dani...@collabora.com> >> Cc: Ilia Mirkin <imir...@alum.mit.edu> > > Reviewed-by: Eric Engestrom <eric.engest...@imgtec.com> > >> --- >> src/egl/drivers/dri2/platform_wayland.c | 12 ++++++++++++ >> 1 file changed, 12 insertions(+) >> >> diff --git a/src/egl/drivers/dri2/platform_wayland.c >> b/src/egl/drivers/dri2/platform_wayland.c >> index 877f7933b9a..7a32491974e 100644 >> --- a/src/egl/drivers/dri2/platform_wayland.c >> +++ b/src/egl/drivers/dri2/platform_wayland.c >> @@ -81,6 +81,18 @@ static const struct dri2_wl_visual { >> __DRI_IMAGE_FORMAT_ARGB2101010, 32, >> { 0x3ff00000, 0x000ffc00, 0x000003ff, 0xc0000000 } >> }, >> + { >> + "XBGR2101010", >> + WL_DRM_FORMAT_XBGR2101010, WL_SHM_FORMAT_XBGR2101010, >> + __DRI_IMAGE_FORMAT_XBGR2101010, 32, >> + { 0x000003ff, 0x000ffc00, 0x3ff00000, 0x00000000 } >> + }, >> + { >> + "ABGR2101010", >> + WL_DRM_FORMAT_ABGR2101010, WL_SHM_FORMAT_ABGR2101010, >> + __DRI_IMAGE_FORMAT_ABGR2101010, 32, >> + { 0x000003ff, 0x000ffc00, 0x3ff00000, 0xc0000000 } >> + }, >> { >> "XRGB8888", >> WL_DRM_FORMAT_XRGB8888, WL_SHM_FORMAT_XRGB8888, >> -- >> 2.14.3 >> >> _______________________________________________ >> mesa-dev mailing list >> mesa-dev@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/mesa-dev > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev