From: Roland Scheidegger <srol...@vmware.com> Just like other similar compressed formats. --- 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. -- 2.7.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev