util: add ETC as compressed format
authorWladimir <laanwj@gmail.com>
Fri, 5 Apr 2013 17:49:26 +0000 (19:49 +0200)
committerBrian Paul <brianp@vmware.com>
Fri, 5 Apr 2013 22:14:51 +0000 (16:14 -0600)
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>
src/gallium/auxiliary/util/u_format.h

index 00301265db89ef9d25e80cb8681d49f57778b5a4..ed942fb1658fb669674852d6c787e087377273b5 100644 (file)
@@ -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: