From 0c80bdf758eb9bb09d16e37ea1e82f984d2a0c90 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 24 May 2022 15:14:05 -0600 Subject: [PATCH] gallivm: s/unsigned/enum pipe_swizzle/ Signed-off-by: Brian Paul Reviewed-by: Roland Scheidegger Part-of: --- 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