gallivm: Don't hardcode number of args twice.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 8 May 2010 18:26:55 +0000 (19:26 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 8 May 2010 22:29:05 +0000 (23:29 +0100)
src/gallium/auxiliary/gallivm/lp_bld_format_aos.c

index 6257e9a4047cf5de7bc3026e4253c43e71585054..f1390859fa5d55a5a4aadb109a22d7ac3d033524 100644 (file)
@@ -384,7 +384,7 @@ lp_build_fetch_rgba_aos(LLVMBuilderRef builder,
       args[2] = i;
       args[3] = j;
 
-      LLVMBuildCall(builder, function, args, 4, "");
+      LLVMBuildCall(builder, function, args, Elements(args), "");
 
       return LLVMBuildLoad(builder, tmp, "");
    }