summaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2019-12-11 17:05:57 -0800
committerKristian H. Kristensen <[email protected]>2019-12-19 09:56:05 -0800
commite4c2bb6a93a0dde0b79bc73da0cec1e420ae3e78 (patch)
treeab46b252d64f8d3e32d087a461f9e67a1a7df958 /src/freedreno
parent8089fb2e6249beddb774e3d0354983e7ec9afb78 (diff)
freedreno/a6xx: RB6_R8G8B8 is actually 32 bit RGBX
Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Kristian H. Kristensen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/registers/a6xx.xml2
-rw-r--r--src/freedreno/vulkan/tu_formats.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/freedreno/registers/a6xx.xml b/src/freedreno/registers/a6xx.xml
index 1909276ba62..ff723941f31 100644
--- a/src/freedreno/registers/a6xx.xml
+++ b/src/freedreno/registers/a6xx.xml
@@ -26,7 +26,7 @@ xsi:schemaLocation="http://nouveau.freedesktop.org/ rules-ng.xsd">
<value value="0x18" name="RB6_R16_UINT"/>
<value value="0x19" name="RB6_R16_SINT"/>
<value value="0x30" name="RB6_R8G8B8A8_UNORM"/>
- <value value="0x31" name="RB6_R8G8B8_UNORM"/>
+ <value value="0x31" name="RB6_R8G8B8X8_UNORM"/> <!-- 32 bpp format, samples 1 for alpha -->
<value value="0x32" name="RB6_R8G8B8A8_SNORM"/>
<value value="0x33" name="RB6_R8G8B8A8_UINT"/>
<value value="0x34" name="RB6_R8G8B8A8_SINT"/>
diff --git a/src/freedreno/vulkan/tu_formats.c b/src/freedreno/vulkan/tu_formats.c
index 4f8833cf586..c9cc4a89526 100644
--- a/src/freedreno/vulkan/tu_formats.c
+++ b/src/freedreno/vulkan/tu_formats.c
@@ -345,7 +345,7 @@ tu6_rb_fmt_to_ifmt(enum a6xx_color_fmt fmt)
case RB6_R8G8_UNORM:
case RB6_R8G8_SNORM:
case RB6_R8G8B8A8_UNORM:
- case RB6_R8G8B8_UNORM:
+ case RB6_R8G8B8X8_UNORM:
case RB6_R8G8B8A8_SNORM:
case RB6_R4G4B4A4_UNORM:
case RB6_R5G5B5A1_UNORM: