From: Roland Scheidegger Date: Sat, 3 Dec 2016 16:10:09 +0000 (+0100) Subject: util: (trivial) ETC1 meets the criteria for fitting into unorm8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=775a2446450fc71cb43e48ece9b59f0412c067fd;p=mesa.git util: (trivial) ETC1 meets the criteria for fitting into unorm8 Just like other similar compressed formats. Reviewed-by: Jose Fonseca --- 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.