projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
decf070
)
freedreno: Add a few texture formats
author
Andreas Heider
<andreas@heider.io>
Mon, 4 Nov 2013 10:51:21 +0000
(11:51 +0100)
committer
Rob Clark
<robclark@freedesktop.org>
Mon, 2 Dec 2013 22:37:03 +0000
(17:37 -0500)
src/gallium/drivers/freedreno/a3xx/fd3_util.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/a3xx/fd3_util.c
b/src/gallium/drivers/freedreno/a3xx/fd3_util.c
index 7503dfefa31b75cae63e30a5f80743369714835e..07f23fd4e4a857309af64f896a2be9202bb7cc97 100644
(file)
--- 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..