[Mesa-dev] [PATCH 24/34] gallivm: Fix indirect input fetches for gs.
Zack Rusin
zackr at vmware.com
Mon Jul 29 11:11:18 PDT 2013
That looks wrong to me as well. What would make get_indirect_index different in this case?
----- Original Message -----
> 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,
> ®->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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list