gallivm: s/unsigned/enum pipe_swizzle/

Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17062>
This commit is contained in:
Brian Paul 2022-05-24 15:14:05 -06:00
parent 3f0a6c7ac1
commit 0c80bdf758
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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