[Mesa-dev] [PATCH] ac/nir: Fix conflict resolution typo in handle_vs_input_decl
Bas Nieuwenhuizen
basni at chromium.org
Tue Feb 13 16:33:38 UTC 2018
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Tue, Feb 13, 2018 at 5:05 PM, James Legg <jlegg at feralinteractive.com>
wrote:
> Fixes ad764e365beb8a119369b97f22225cb95fc7ea8c:
> "ac/nir: Use instance_rate_inputs per attribute, not per variable".
>
> CC: <mesa-stable at lists.freedesktop.org>
> CC: Emil Velikov <emil.l.velikov at gmail.com>
> CC: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
> ---
> src/amd/common/ac_nir_to_llvm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_
> llvm.c
> index dde6cbc8f5..4812debb2f 100644
> --- a/src/amd/common/ac_nir_to_llvm.c
> +++ b/src/amd/common/ac_nir_to_llvm.c
> @@ -5117,7 +5117,7 @@ handle_vs_input_decl(struct nir_to_llvm_context *ctx,
> variable->data.driver_location = idx * 4;
>
> for (unsigned i = 0; i < attrib_count; ++i, ++idx) {
> - if (ctx->options->key.vs.instance_rate_inputs & (1u <<
> (index + 1))) {
> + if (ctx->options->key.vs.instance_rate_inputs & (1u <<
> (index + i))) {
> buffer_index = LLVMBuildAdd(ctx->builder,
> ctx->abi.instance_id,
>
> ctx->abi.start_instance, "");
> ctx->shader_info->vs.vgpr_comp_cnt =
> --
> 2.14.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180213/4b877288/attachment.html>
More information about the mesa-dev
mailing list