Module: Mesa Branch: main Commit: 1700c6af6f807f801382c6cea5cb7136563e8bad URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1700c6af6f807f801382c6cea5cb7136563e8bad
Author: Mario Kleiner <[email protected]> Date: Mon Mar 13 15:57:34 2023 +0100 v3d: add B10G10R10[X2/A2]_UNORM to format table. Enables 10 bpc / color depth 30 bit support under XOrg with X11/GLX/OpenGL. Successfully tested with RaspberryPi OS 11, running X-Server 1.20, and also with Weston, on a RaspberryPi 400 on top of current Mesa 24.0-devel. Alejandro Piñeiro also performed a GLES CTS run with successful result, citing him: "Full GLES 31 CTS finished with 0 failres. So all ok" Note that this commit was originally developed and successfully tested by myself against Mesa 23.1-devel from February 2023, and therefore should apply and work cleanly against recent Mesa stable branches. One could see this commit as a trivial compatibility fix against X-Server 1.20 / modesetting-ddx 1.20, which is why I'm also nominating this commit for the current 23.3 stable branch, and also the 23.2 stable branch, so it may make it into RaspberryPi OS 12. Thanks for the consideration. Signed-off-by: Mario Kleiner <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]> Reviewed-by: Alejandro Piñeiro <[email protected]> Backport-to: 23.2 Backport-to: 23.3 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26472> --- src/gallium/drivers/v3d/v3dx_format_table.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/v3d/v3dx_format_table.c b/src/gallium/drivers/v3d/v3dx_format_table.c index 76b1074cb62..ee88e22601b 100644 --- a/src/gallium/drivers/v3d/v3dx_format_table.c +++ b/src/gallium/drivers/v3d/v3dx_format_table.c @@ -70,7 +70,9 @@ static const struct v3d_format format_table[] = { FORMAT(R8G8B8A8_SNORM, NO, RGBA8_SNORM, SWIZ_XYZW, 16, 0), FORMAT(R8G8B8X8_SNORM, NO, RGBA8_SNORM, SWIZ_XYZ1, 16, 0), FORMAT(R10G10B10A2_UNORM, RGB10_A2, RGB10_A2, SWIZ_XYZW, 16, 0), + FORMAT(B10G10R10A2_UNORM, RGB10_A2, RGB10_A2, SWIZ_ZYXW, 16, 0), FORMAT(R10G10B10X2_UNORM, RGB10_A2, RGB10_A2, SWIZ_XYZ1, 16, 0), + FORMAT(B10G10R10X2_UNORM, RGB10_A2, RGB10_A2, SWIZ_ZYX1, 16, 0), FORMAT(R10G10B10A2_UINT, RGB10_A2UI, RGB10_A2UI, SWIZ_XYZW, 16, 0), FORMAT(A4B4G4R4_UNORM, ABGR4444, RGBA4, SWIZ_XYZW, 16, 0),
