Module: Mesa
Branch: main
Commit: 1fbec9f5323bbc3d503aea4b391b82afb0c26831
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1fbec9f5323bbc3d503aea4b391b82afb0c26831

Author: Erik Faye-Lund <erik.faye-l...@collabora.com>
Date:   Wed Nov 15 10:09:36 2023 +0100

util/format: document NONE swizzle

Reviewed-by: Boris Brezillon <boris.brezil...@collabora.com>
Reviewed-by: Marek Olšák <marek.ol...@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26192>

---

 src/util/format/u_formats.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/util/format/u_formats.h b/src/util/format/u_formats.h
index a48b124002a..1247cf05182 100644
--- a/src/util/format/u_formats.h
+++ b/src/util/format/u_formats.h
@@ -667,7 +667,10 @@ enum pipe_swizzle {
    PIPE_SWIZZLE_W,
    PIPE_SWIZZLE_0,
    PIPE_SWIZZLE_1,
+
+   /* Non-existent format channel, not used for swizzle operations. */
    PIPE_SWIZZLE_NONE,
+
    PIPE_SWIZZLE_MAX, /**< Number of enums counter (must be last) */
 };
 

Reply via email to