OSDN Git Service

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 2123683..048b299 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);