Mesa (master): freedreno/a6xx: add some more formats
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri May 1 02:21:39 UTC 2020
Module: Mesa
Branch: master
Commit: 9a7c179473f7afd126110ce18243b7061b661887
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a7c179473f7afd126110ce18243b7061b661887
Author: Rob Clark <robdclark at chromium.org>
Date: Thu Apr 16 10:13:24 2020 -0700
freedreno/a6xx: add some more formats
u_vbuf was translating these for us.. which isn't really necessary.
Signed-off-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4812>
---
src/gallium/drivers/freedreno/a6xx/fd6_format.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_format.c b/src/gallium/drivers/freedreno/a6xx/fd6_format.c
index f8431354502..1780fbcc941 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_format.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_format.c
@@ -132,6 +132,8 @@ static struct fd6_format formats[PIPE_FORMAT_COUNT] = {
V__(R8G8B8_SSCALED, 8_8_8_SINT, WZYX),
/* 32-bit */
+ V__(R32_UNORM, 32_UNORM, WZYX),
+ V__(R32_SNORM, 32_SNORM, WZYX),
VTC(R32_UINT, 32_UINT, WZYX),
VTC(R32_SINT, 32_SINT, WZYX),
V__(R32_USCALED, 32_UINT, WZYX),
@@ -232,6 +234,8 @@ static struct fd6_format formats[PIPE_FORMAT_COUNT] = {
VTC(R16G16B16A16_FLOAT, 16_16_16_16_FLOAT, WZYX),
VTC(R16G16B16X16_FLOAT, 16_16_16_16_FLOAT, WZYX),
+ V__(R32G32_UNORM, 32_32_UNORM, WZYX),
+ V__(R32G32_SNORM, 32_32_SNORM, WZYX),
VTC(R32G32_UINT, 32_32_UINT, WZYX),
VTC(R32G32_SINT, 32_32_SINT, WZYX),
V__(R32G32_USCALED, 32_32_UINT, WZYX),
@@ -243,6 +247,8 @@ static struct fd6_format formats[PIPE_FORMAT_COUNT] = {
_T_(L32A32_SINT, 32_32_SINT, WZYX),
/* 96-bit */
+ V__(R32G32B32_UNORM, 32_32_32_UNORM, WZYX),
+ V__(R32G32B32_SNORM, 32_32_32_SNORM, WZYX),
VT_(R32G32B32_UINT, 32_32_32_UINT, WZYX),
VT_(R32G32B32_SINT, 32_32_32_SINT, WZYX),
V__(R32G32B32_USCALED, 32_32_32_UINT, WZYX),
@@ -251,6 +257,8 @@ static struct fd6_format formats[PIPE_FORMAT_COUNT] = {
V__(R32G32B32_FIXED, 32_32_32_FIXED, WZYX),
/* 128-bit */
+ V__(R32G32B32A32_UNORM, 32_32_32_32_UNORM, WZYX),
+ V__(R32G32B32A32_SNORM, 32_32_32_32_SNORM, WZYX),
VTC(R32G32B32A32_UINT, 32_32_32_32_UINT, WZYX),
_TC(R32G32B32X32_UINT, 32_32_32_32_UINT, WZYX),
VTC(R32G32B32A32_SINT, 32_32_32_32_SINT, WZYX),
More information about the mesa-commit
mailing list