Mesa (master): gallivm: Don't hardcode number of args twice.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sat May 8 22:31:31 UTC 2010


Module: Mesa
Branch: master
Commit: de088c6ae44f78d0afa3970cbaf40cdfc21d8fd9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=de088c6ae44f78d0afa3970cbaf40cdfc21d8fd9

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sat May  8 19:26:55 2010 +0100

gallivm: Don't hardcode number of args twice.

---

 src/gallium/auxiliary/gallivm/lp_bld_format_aos.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
index 6257e9a..f139085 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
@@ -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, "");
    }




More information about the mesa-commit mailing list