util: Move PIPE_MASK_* from p_defines.h to u_formats.h
authorYonggang Luo <luoyonggang@gmail.com>
Sun, 4 Jun 2023 09:15:31 +0000 (17:15 +0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 2 Aug 2023 03:41:24 +0000 (03:41 +0000)
PIPE_MASK_* is used by src/util/*, so do the move to decouple src/util/* from gallium

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19522>

src/gallium/include/pipe/p_defines.h
src/util/format/u_formats.h

index 2829880..f5e9768 100644 (file)
@@ -57,17 +57,6 @@ enum pipe_error
    /* TODO */
 };
 
-#define PIPE_MASK_R  0x1
-#define PIPE_MASK_G  0x2
-#define PIPE_MASK_B  0x4
-#define PIPE_MASK_A  0x8
-#define PIPE_MASK_RGBA 0xf
-#define PIPE_MASK_Z  0x10
-#define PIPE_MASK_S  0x20
-#define PIPE_MASK_ZS 0x30
-#define PIPE_MASK_RGBAZS (PIPE_MASK_RGBA|PIPE_MASK_ZS)
-
-
 /**
  * Inequality functions.  Used for depth test, stencil compare, alpha
  * test, shadow compare, etc.
index fb2defd..6ca3f5e 100644 (file)
@@ -666,6 +666,16 @@ enum pipe_swizzle {
    PIPE_SWIZZLE_MAX, /**< Number of enums counter (must be last) */
 };
 
+#define PIPE_MASK_R  0x1
+#define PIPE_MASK_G  0x2
+#define PIPE_MASK_B  0x4
+#define PIPE_MASK_A  0x8
+#define PIPE_MASK_RGBA 0xf
+#define PIPE_MASK_Z  0x10
+#define PIPE_MASK_S  0x20
+#define PIPE_MASK_ZS 0x30
+#define PIPE_MASK_RGBAZS (PIPE_MASK_RGBA|PIPE_MASK_ZS)
+
 #ifdef __cplusplus
 }
 #endif