Mesa (main): llvmpipe: s/unsigned/enum pipe_compare_func/

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 17 00:08:57 UTC 2022


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

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Jun  9 11:32:35 2022 -0600

llvmpipe: s/unsigned/enum pipe_compare_func/

Signed-off-by: Brian Paul <brianp at vmware.com>
Acked-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

---

 src/gallium/auxiliary/gallivm/lp_bld_logic.c | 8 ++++----
 src/gallium/auxiliary/gallivm/lp_bld_logic.h | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_logic.c b/src/gallium/auxiliary/gallivm/lp_bld_logic.c
index 3ed3b5a74b1..59baf6f02ea 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_logic.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_logic.c
@@ -77,7 +77,7 @@
 static LLVMValueRef
 lp_build_compare_ext(struct gallivm_state *gallivm,
                      const struct lp_type type,
-                     unsigned func,
+                     enum pipe_compare_func func,
                      LLVMValueRef a,
                      LLVMValueRef b,
                      boolean ordered)
@@ -170,7 +170,7 @@ lp_build_compare_ext(struct gallivm_state *gallivm,
 LLVMValueRef
 lp_build_compare(struct gallivm_state *gallivm,
                  const struct lp_type type,
-                 unsigned func,
+                 enum pipe_compare_func func,
                  LLVMValueRef a,
                  LLVMValueRef b)
 {
@@ -220,7 +220,7 @@ lp_build_compare(struct gallivm_state *gallivm,
  */
 LLVMValueRef
 lp_build_cmp_ordered(struct lp_build_context *bld,
-                     unsigned func,
+                     enum pipe_compare_func func,
                      LLVMValueRef a,
                      LLVMValueRef b)
 {
@@ -237,7 +237,7 @@ lp_build_cmp_ordered(struct lp_build_context *bld,
  */
 LLVMValueRef
 lp_build_cmp(struct lp_build_context *bld,
-             unsigned func,
+             enum pipe_compare_func func,
              LLVMValueRef a,
              LLVMValueRef b)
 {
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_logic.h b/src/gallium/auxiliary/gallivm/lp_bld_logic.h
index b8bbfb2bf13..2278a8be9cc 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_logic.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_logic.h
@@ -52,7 +52,7 @@ struct lp_build_context;
 LLVMValueRef
 lp_build_compare(struct gallivm_state *gallivm,
                  const struct lp_type type,
-                 unsigned func,
+                 enum pipe_compare_func func,
                  LLVMValueRef a,
                  LLVMValueRef b);
 
@@ -62,13 +62,13 @@ lp_build_compare(struct gallivm_state *gallivm,
  */
 LLVMValueRef
 lp_build_cmp(struct lp_build_context *bld,
-             unsigned func,
+             enum pipe_compare_func func,
              LLVMValueRef a,
              LLVMValueRef b);
 
 LLVMValueRef
 lp_build_cmp_ordered(struct lp_build_context *bld,
-                     unsigned func,
+                     enum pipe_compare_func func,
                      LLVMValueRef a,
                      LLVMValueRef b);
 



More information about the mesa-commit mailing list