Mesa (master): freedreno/a3xx: add 16-bit unorm/snorm texture formats

Rob Clark robclark at kemper.freedesktop.org
Sun Nov 30 22:59:36 UTC 2014


Module: Mesa
Branch: master
Commit: 5d95e99622332fd1cb7f2bf77bee3fdf0e0848b9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5d95e99622332fd1cb7f2bf77bee3fdf0e0848b9

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sat Nov 29 17:04:57 2014 -0500

freedreno/a3xx: add 16-bit unorm/snorm texture formats

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/freedreno/a3xx/fd3_format.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_format.c b/src/gallium/drivers/freedreno/a3xx/fd3_format.c
index 676084b..59f5a44 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_format.c
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_format.c
@@ -85,8 +85,8 @@ static struct fd3_format formats[PIPE_FORMAT_COUNT] = {
 	_T(I8_UNORM,   8_UNORM, NONE,     WZYX),
 
 	/* 16-bit */
-	V_(R16_UNORM,   16_UNORM, NONE,     WZYX),
-	V_(R16_SNORM,   16_SNORM, NONE,     WZYX),
+	VT(R16_UNORM,   16_UNORM, NONE,     WZYX),
+	VT(R16_SNORM,   16_SNORM, NONE,     WZYX),
 	VT(R16_UINT,    16_UINT,  R16_UINT, WZYX),
 	VT(R16_SINT,    16_SINT,  R16_SINT, WZYX),
 	V_(R16_USCALED, 16_UINT,  NONE,     WZYX),
@@ -122,8 +122,8 @@ static struct fd3_format formats[PIPE_FORMAT_COUNT] = {
 	VT(R32_FLOAT,   32_FLOAT, NONE,     WZYX),
 	V_(R32_FIXED,   32_FIXED, NONE,     WZYX),
 
-	V_(R16G16_UNORM,   16_16_UNORM, NONE,        WZYX),
-	V_(R16G16_SNORM,   16_16_SNORM, NONE,        WZYX),
+	VT(R16G16_UNORM,   16_16_UNORM, NONE,        WZYX),
+	VT(R16G16_SNORM,   16_16_SNORM, NONE,        WZYX),
 	VT(R16G16_UINT,    16_16_UINT,  R16G16_UINT, WZYX),
 	VT(R16G16_SINT,    16_16_SINT,  R16G16_SINT, WZYX),
 	V_(R16G16_USCALED, 16_16_UINT,  NONE,        WZYX),
@@ -178,8 +178,8 @@ static struct fd3_format formats[PIPE_FORMAT_COUNT] = {
 	V_(R16G16B16_FLOAT,   16_16_16_FLOAT, NONE, WZYX),
 
 	/* 64-bit */
-	V_(R16G16B16A16_UNORM,   16_16_16_16_UNORM, NONE,               WZYX),
-	V_(R16G16B16A16_SNORM,   16_16_16_16_SNORM, NONE,               WZYX),
+	VT(R16G16B16A16_UNORM,   16_16_16_16_UNORM, NONE,               WZYX),
+	VT(R16G16B16A16_SNORM,   16_16_16_16_SNORM, NONE,               WZYX),
 	VT(R16G16B16A16_UINT,    16_16_16_16_UINT,  R16G16B16A16_UINT,  WZYX),
 	_T(R16G16B16X16_UINT,    16_16_16_16_UINT,  R16G16B16A16_UINT,  WZYX),
 	VT(R16G16B16A16_SINT,    16_16_16_16_SINT,  R16G16B16A16_SINT,  WZYX),




More information about the mesa-commit mailing list