Mesa (master): util: (trivial) ETC1 meets the criteria for fitting into unorm8
Roland Scheidegger
sroland at kemper.freedesktop.org
Tue Dec 6 19:06:40 UTC 2016
Module: Mesa
Branch: master
Commit: 775a2446450fc71cb43e48ece9b59f0412c067fd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=775a2446450fc71cb43e48ece9b59f0412c067fd
Author: Roland Scheidegger <sroland at vmware.com>
Date: Sat Dec 3 17:10:09 2016 +0100
util: (trivial) ETC1 meets the criteria for fitting into unorm8
Just like other similar compressed formats.
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
src/gallium/auxiliary/util/u_format.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_format.c b/src/gallium/auxiliary/util/u_format.c
index 72dd60f..3d28190 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.
More information about the mesa-commit
mailing list