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