Mesa (master): freedreno/a5xx: hack for r8g8b8a8_snorm

Rob Clark robclark at kemper.freedesktop.org
Sun Apr 23 17:07:53 UTC 2017


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

Author: Rob Clark <robdclark at gmail.com>
Date:   Sun Apr 23 12:40:15 2017 -0400

freedreno/a5xx: hack for r8g8b8a8_snorm

Blob won't render to this format, and sampling from it it uses the same
fmt value for r8g8b8_snorm and r8g8b8a8_snorm.  But this is what is what
blocks us from jumping from gl30/gles20 to gl31/gles30.  So a hack it
is!

Signed-off-by: Rob Clark <robdclark at gmail.com>

---

 src/gallium/drivers/freedreno/a5xx/fd5_format.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_format.c b/src/gallium/drivers/freedreno/a5xx/fd5_format.c
index e6593a24ca..285d5238a8 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_format.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_format.c
@@ -173,7 +173,7 @@ static struct fd5_format formats[PIPE_FORMAT_COUNT] = {
 	_T(R8G8B8X8_UNORM,   8_8_8_8_UNORM, R8G8B8A8_UNORM, WZYX),
 	_T(R8G8B8A8_SRGB,    8_8_8_8_UNORM, R8G8B8A8_UNORM, WZYX),
 	_T(R8G8B8X8_SRGB,    8_8_8_8_UNORM, R8G8B8A8_UNORM, WZYX),
-	V_(R8G8B8A8_SNORM,   8_8_8_8_SNORM, NONE,           WZYX),
+	VT(R8G8B8A8_SNORM,   8_8_8_8_UNORM, R8G8B8A8_UNORM, WZYX),
 	V_(R8G8B8A8_UINT,    8_8_8_8_UINT,  R8G8B8A8_UINT,  WZYX),
 	V_(R8G8B8A8_SINT,    8_8_8_8_SINT,  NONE,           WZYX),
 	V_(R8G8B8A8_USCALED, 8_8_8_8_UINT,  NONE,           WZYX),




More information about the mesa-commit mailing list