[Mesa-dev] [PATCH 24/34] gallivm: Fix indirect input fetches for gs.

Paul Berry stereotype441 at gmail.com
Sun Jul 28 23:03:50 PDT 2013


From: Fabian Bieler <fabianbieler at fastmail.fm>

---
 src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index c199385..1d27e81 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -1120,6 +1120,9 @@ emit_fetch_gs_input(
                                           reg->Register.File,
                                           reg->Register.Index,
                                           &reg->Indirect);
+
+      LLVMValueRef ind = lp_build_const_int32(gallivm, 0);
+      attrib_index = LLVMBuildExtractElement(builder, attrib_index, ind, "");
    } else {
       attrib_index = lp_build_const_int32(gallivm, reg->Register.Index);
    }
-- 
1.8.3.4



More information about the mesa-dev mailing list