Mesa (master): freedreno/a4xx: add ARB_texture_rgb10_a2ui support
Ilia Mirkin
imirkin at kemper.freedesktop.org
Mon Nov 23 16:21:18 UTC 2015
Module: Mesa
Branch: master
Commit: f9549d0a0f31f9e63933bb1833e9793ccc19c902
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9549d0a0f31f9e63933bb1833e9793ccc19c902
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sat Nov 21 19:26:34 2015 -0500
freedreno/a4xx: add ARB_texture_rgb10_a2ui support
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/freedreno/a4xx/a4xx.xml.h | 1 +
src/gallium/drivers/freedreno/a4xx/fd4_format.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h b/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
index 5a53230..e465334 100644
--- a/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
+++ b/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
@@ -165,6 +165,7 @@ enum a4xx_tex_fmt {
TFMT4_4_4_4_4_UNORM = 8,
TFMT4_X8Z24_UNORM = 71,
TFMT4_10_10_10_2_UNORM = 33,
+ TFMT4_10_10_10_2_UINT = 34,
TFMT4_A8_UNORM = 3,
TFMT4_L8_A8_UNORM = 13,
TFMT4_8_UNORM = 4,
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_format.c b/src/gallium/drivers/freedreno/a4xx/fd4_format.c
index dc126b1..ace5b3f 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_format.c
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_format.c
@@ -201,8 +201,8 @@ static struct fd4_format formats[PIPE_FORMAT_COUNT] = {
_T(B10G10R10X2_UNORM, 10_10_10_2_UNORM, R10G10B10A2_UNORM, WXYZ),
V_(R10G10B10A2_SNORM, 10_10_10_2_SNORM, NONE, WZYX),
V_(B10G10R10A2_SNORM, 10_10_10_2_SNORM, NONE, WXYZ),
- V_(R10G10B10A2_UINT, 10_10_10_2_UINT, NONE, WZYX),
- V_(B10G10R10A2_UINT, 10_10_10_2_UINT, NONE, WXYZ),
+ VT(R10G10B10A2_UINT, 10_10_10_2_UINT, R10G10B10A2_UINT, WZYX),
+ VT(B10G10R10A2_UINT, 10_10_10_2_UINT, R10G10B10A2_UINT, WXYZ),
V_(R10G10B10A2_USCALED, 10_10_10_2_UINT, NONE, WZYX),
V_(B10G10R10A2_USCALED, 10_10_10_2_UINT, NONE, WXYZ),
V_(R10G10B10A2_SSCALED, 10_10_10_2_SINT, NONE, WZYX),
More information about the mesa-commit
mailing list