> h (format) { > > How about > > const struct util_format_description *desc = util_format_description(format); > return desc->layout == UTIL_FORMAT_LAYOUT_ETC;
I intentionally exclude PIPE_FORMAT_ETC1_RGB8 here because it is implemented on older hw and has its own feature bit (ETC1_TEXTURE_COMPRESSION). But yes that shortens the code at least, thanks. > There's already a util_format_is_s3tc helper, I don't think it'd be way out of line to add one for etc as well. Ok, will add one. Regards, Wladimir _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev