From: Marek Olšák Date: Mon, 26 Aug 2019 23:53:09 +0000 (-0400) Subject: gallium/util: remove enum numbering from util_format_layout X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d06b9952c887a0c5c1e2ef77da79b33341b0a70;p=mesa.git gallium/util: remove enum numbering from util_format_layout Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index 7b0e3ee1bc4..115656a7034 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -53,7 +53,7 @@ enum util_format_layout { * Formats with util_format_block::width == util_format_block::height == 1 * that can be described as an ordinary data structure. */ - UTIL_FORMAT_LAYOUT_PLAIN = 0, + UTIL_FORMAT_LAYOUT_PLAIN, /** * Formats with sub-sampled channels. @@ -61,36 +61,36 @@ enum util_format_layout { * This is for formats like YVYU where there is less than one sample per * pixel. */ - UTIL_FORMAT_LAYOUT_SUBSAMPLED = 3, + UTIL_FORMAT_LAYOUT_SUBSAMPLED, /** * S3 Texture Compression formats. */ - UTIL_FORMAT_LAYOUT_S3TC = 4, + UTIL_FORMAT_LAYOUT_S3TC, /** * Red-Green Texture Compression formats. */ - UTIL_FORMAT_LAYOUT_RGTC = 5, + UTIL_FORMAT_LAYOUT_RGTC, /** * Ericsson Texture Compression */ - UTIL_FORMAT_LAYOUT_ETC = 6, + UTIL_FORMAT_LAYOUT_ETC, /** * BC6/7 Texture Compression */ - UTIL_FORMAT_LAYOUT_BPTC = 7, + UTIL_FORMAT_LAYOUT_BPTC, - UTIL_FORMAT_LAYOUT_ASTC = 8, + UTIL_FORMAT_LAYOUT_ASTC, - UTIL_FORMAT_LAYOUT_ATC = 9, + UTIL_FORMAT_LAYOUT_ATC, /** * Everything else that doesn't fit in any of the above layouts. */ - UTIL_FORMAT_LAYOUT_OTHER = 10 + UTIL_FORMAT_LAYOUT_OTHER, };