Mesa (main): gallivm: s/unsigned/enum pipe_swizzle/

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 14 20:00:36 UTC 2022


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue May 24 15:14:05 2022 -0600

gallivm: s/unsigned/enum pipe_swizzle/

Signed-off-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17062>

---

 src/gallium/auxiliary/gallivm/lp_bld_swizzle.c | 2 +-
 src/gallium/auxiliary/gallivm/lp_bld_swizzle.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c
index ad03b2c115d..9b89654b5d3 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c
@@ -571,7 +571,7 @@ lp_build_swizzle_aos(struct lp_build_context *bld,
 LLVMValueRef
 lp_build_swizzle_soa_channel(struct lp_build_context *bld,
                              const LLVMValueRef *unswizzled,
-                             unsigned swizzle)
+                             enum pipe_swizzle swizzle)
 {
    switch (swizzle) {
    case PIPE_SWIZZLE_X:
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.h b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.h
index 91ecd341476..e5be83a2f1d 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.h
@@ -38,6 +38,7 @@
 
 
 #include "gallivm/lp_bld.h"
+#include "pipe/p_defines.h"
 
 
 struct lp_type;
@@ -99,7 +100,7 @@ lp_build_swizzle_aos_n(struct gallivm_state* gallivm,
 LLVMValueRef
 lp_build_swizzle_soa_channel(struct lp_build_context *bld,
                              const LLVMValueRef *unswizzled,
-                             unsigned swizzle);
+                             enum pipe_swizzle swizzle);
 
 
 void



More information about the mesa-commit mailing list