summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorAndreas Heider <[email protected]>2013-11-04 11:51:21 +0100
committerRob Clark <[email protected]>2013-12-02 17:37:03 -0500
commitad3937fd4efdd0a9a2b79ab6ae899a4ca1f3bb01 (patch)
treec9048241d8c99e477929e9e6ec22a84fe2db860a /src/gallium/drivers/freedreno
parentdecf070258f396223aac6f57e22540a304986e54 (diff)
freedreno: Add a few texture formats
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_util.c b/src/gallium/drivers/freedreno/a3xx/fd3_util.c
index 7503dfefa31..07f23fd4e4a 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_util.c
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_util.c
@@ -228,6 +228,7 @@ fd3_pipe2tex(enum pipe_format format)
case PIPE_FORMAT_B8G8R8A8_UNORM:
case PIPE_FORMAT_B8G8R8X8_UNORM:
+ case PIPE_FORMAT_R8G8B8A8_UNORM:
return TFMT_NORM_UINT_8_8_8_8;
case PIPE_FORMAT_Z24X8_UNORM:
@@ -278,6 +279,7 @@ fd3_pipe2color(enum pipe_format format)
switch (format) {
case PIPE_FORMAT_B8G8R8A8_UNORM:
case PIPE_FORMAT_B8G8R8X8_UNORM:
+ case PIPE_FORMAT_R8G8B8A8_UNORM:
return RB_R8G8B8A8_UNORM;
case PIPE_FORMAT_Z16_UNORM:
@@ -290,6 +292,7 @@ fd3_pipe2color(enum pipe_format format)
case PIPE_FORMAT_R8_UNORM:
case PIPE_FORMAT_L8_UNORM:
+ case PIPE_FORMAT_A8_UNORM:
return RB_A8_UNORM;
// TODO add more..