gallivm: Use const keyword on swizzles.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 10 Sep 2010 15:37:11 +0000 (16:37 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 11 Sep 2010 12:31:35 +0000 (13:31 +0100)
src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c

index 50f3d798c52276f8581ffdec6207ef71cd3ec032..97318b3456c0ac5d6cc3ee909bdcf5e35acaf697 100644 (file)
@@ -113,7 +113,7 @@ void
 lp_build_tgsi_aos(LLVMBuilderRef builder,
                   const struct tgsi_token *tokens,
                   struct lp_type type,
-                  unsigned char swizzles[4],
+                  const unsigned char swizzles[4],
                   LLVMValueRef consts_ptr,
                   const LLVMValueRef *inputs,
                   LLVMValueRef *outputs,
index c8812662fe38030145e62d67c2bcfde4756c68d8..9d13007c7a098d2cd4db8d51e6500de94544514d 100644 (file)
@@ -1043,7 +1043,7 @@ void
 lp_build_tgsi_aos(LLVMBuilderRef builder,
                   const struct tgsi_token *tokens,
                   struct lp_type type,
-                  unsigned char swizzles[4],
+                  const unsigned char swizzles[4],
                   LLVMValueRef consts_ptr,
                   const LLVMValueRef *inputs,
                   LLVMValueRef *outputs,