0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-15 23:48:54 +00:00
Lakka-LibreELEC/projects/RPi/patches/mesa/0100-temporarily-diasble-B10G10R10A2-format.patch
Matthias Reichl 11f7432d0b mesa (RPi): temporarily drop B10G10R10A2 format support
This prevents kodi using 10bpc planes with only 2 bits alpha which
result in poor visual quality of (semi-) transparent GUI overlays
when using direct-to-plane rendering.

Ideally this should be fixed in kodi but the changes are likely quite
involved so just drop it in mesa with a one-liner patch for now.

Signed-off-by: Matthias Reichl <hias@horus.com>
2024-02-17 13:57:16 +01:00

13 lines
878 B
Diff

diff --git a/src/gallium/drivers/v3d/v3dx_format_table.c b/src/gallium/drivers/v3d/v3dx_format_table.c
index ee88e22601b8..aacf99bce3e3 100644
--- a/src/gallium/drivers/v3d/v3dx_format_table.c
+++ b/src/gallium/drivers/v3d/v3dx_format_table.c
@@ -70,7 +70,6 @@ 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),