util: (trivial) ETC1 meets the criteria for fitting into unorm8

Just like other similar compressed formats.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
Roland Scheidegger 2016-12-03 17:10:09 +01:00
parent 43cdbb3e6a
commit 775a244645
1 changed files with 5 additions and 0 deletions

View File

@ -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.