Mesa (master): gallium/util: remove enum numbering from util_format_layout

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 9 21:07:22 UTC 2019


Module: Mesa
Branch: master
Commit: 3d06b9952c887a0c5c1e2ef77da79b33341b0a70
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d06b9952c887a0c5c1e2ef77da79b33341b0a70

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon Aug 26 19:53:09 2019 -0400

gallium/util: remove enum numbering from util_format_layout

Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 src/gallium/auxiliary/util/u_format.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

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,
 };
 
 




More information about the mesa-commit mailing list