diff options
author | Roland Scheidegger <[email protected]> | 2016-12-03 17:10:09 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2016-12-06 20:06:06 +0100 |
commit | 775a2446450fc71cb43e48ece9b59f0412c067fd (patch) | |
tree | 6594f2039e6fdd58e4c3ee512179976b3ad0c8eb | |
parent | 43cdbb3e6ab7224278a2c68586b8d1a9cb7429a9 (diff) |
util: (trivial) ETC1 meets the criteria for fitting into unorm8
Just like other similar compressed formats.
Reviewed-by: Jose Fonseca <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/util/u_format.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_format.c b/src/gallium/auxiliary/util/u_format.c index 72dd60f6e14..3d281905ce7 100644 --- a/src/gallium/auxiliary/util/u_format.c +++ b/src/gallium/auxiliary/util/u_format.c @@ -561,6 +561,11 @@ util_format_fits_8unorm(const struct util_format_description *format_desc) return TRUE; return FALSE; + case UTIL_FORMAT_LAYOUT_ETC: + if (format_desc->format == PIPE_FORMAT_ETC1_RGB8) + return TRUE; + return FALSE; + case UTIL_FORMAT_LAYOUT_PLAIN: /* * For these we can find a generic rule. |