projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: (trivial) ETC1 meets the criteria for fitting into unorm8
[mesa.git]
/
src
/
gallium
/
auxiliary
/
util
/
u_format.c
diff --git
a/src/gallium/auxiliary/util/u_format.c
b/src/gallium/auxiliary/util/u_format.c
index 72dd60f6e144c49800d5380497ea32e0713c6d6b..3d281905ce7aab59e5e7fd282f6f93a45c07aa55 100644
(file)
--- 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.