summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWladimir <laanwj@gmail.com>2013-04-05 19:49:26 +0200
committerBrian Paul <brianp@vmware.com>2013-04-05 16:14:51 -0600
commit1a868acbecdd7b7cb71342a75a36ad9a80d8eb17 (patch)
treeb86683519a8b5ecf77f0e1b759b34b31584ca161 /src
parentde99b6d1170277e228dfd3b22297554619169ebf (diff)
downloadexternal_mesa3d-1a868acbecdd7b7cb71342a75a36ad9a80d8eb17.zip
external_mesa3d-1a868acbecdd7b7cb71342a75a36ad9a80d8eb17.tar.gz
external_mesa3d-1a868acbecdd7b7cb71342a75a36ad9a80d8eb17.tar.bz2
util: add ETC as compressed format
Add UTIL_FORMAT_LAYOUT_ETC to util_format_is_compressed. It was missing. Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_format.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h
index 0030126..ed942fb 100644
--- a/src/gallium/auxiliary/util/u_format.h
+++ b/src/gallium/auxiliary/util/u_format.h
@@ -447,6 +447,7 @@ util_format_is_compressed(enum pipe_format format)
switch (desc->layout) {
case UTIL_FORMAT_LAYOUT_S3TC:
case UTIL_FORMAT_LAYOUT_RGTC:
+ case UTIL_FORMAT_LAYOUT_ETC:
/* XXX add other formats in the future */
return TRUE;
default: