summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-09-14 15:15:06 -0400
committerRob Clark <[email protected]>2015-09-15 17:29:01 -0400
commit18385bc3ac867bf7fb4070fe0f90bdf8e3e515a4 (patch)
treef906639dfa787c4f84698c9d6355231f7d887da7
parentd85267c4bb5416dc3fbac7798b4bb68247340508 (diff)
freedreno/a4xx: more texture formats
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r--src/gallium/drivers/freedreno/a4xx/fd4_format.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_format.c b/src/gallium/drivers/freedreno/a4xx/fd4_format.c
index 6c9e217d5ad..847d4fb6d63 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_format.c
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_format.c
@@ -89,13 +89,14 @@ static struct fd4_format formats[PIPE_FORMAT_COUNT] = {
_T(L8_UNORM, 8_UNORM, R8_UNORM, WZYX),
_T(I8_UNORM, 8_UNORM, NONE, WZYX),
- /* NOTE: should be TFMT_8_UINT (which then gets remapped to
- * TFMT_8_UNORM for mem2gmem in _gmem_restore_format()), but
- * we don't know TFMT_8_UINT yet.. so just use TFMT_8_UNORM
- * for now.. sampling from stencil as a texture might not
- * work right, but at least should be fine for zsbuf..
- */
- _T(S8_UINT, 8_UNORM, R8_UNORM, WZYX),
+ _T(A8_UINT, 8_UINT, NONE, WZYX),
+ _T(A8_SINT, 8_SINT, NONE, WZYX),
+ _T(L8_UINT, 8_UINT, NONE, WZYX),
+ _T(L8_SINT, 8_SINT, NONE, WZYX),
+ _T(I8_UINT, 8_UINT, NONE, WZYX),
+ _T(I8_SINT, 8_SINT, NONE, WZYX),
+
+ _T(S8_UINT, 8_UINT, R8_UNORM, WZYX),
/* 16-bit */
V_(R16_UNORM, 16_UNORM, NONE, WZYX),