gallivm: Use the correct context for integers
authornobled <nobled@dreamwidth.org>
Sun, 8 Aug 2010 20:17:30 +0000 (20:17 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 8 Aug 2010 21:08:52 +0000 (22:08 +0100)
See:
http://bugs.freedesktop.org/29407

src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c

index 21236839fb730ae5e9fb9917f398ed3167a98733..048b29929a4897729f29f19439a4392ab32f67c0 100644 (file)
@@ -533,7 +533,7 @@ emit_fetch(
                                             reg->Register.Index * 4 + swizzle);
 
          /* index_vec = index_vec + addr_vec */
-         index_vec = lp_build_add(&bld->base, index_vec, addr_vec);
+         index_vec = lp_build_add(&bld->int_bld, index_vec, addr_vec);
 
          /* Gather values from the constant buffer */
          res = build_gather(bld, bld->consts_ptr, index_vec);