From 400db1852bda58f0559c5612fcc378695380425a Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 20 Aug 2019 12:43:33 +0200 Subject: [PATCH] ac/nir: Assert GS input index is constant MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If it's not we silently ignore indir_index which is definitely a bug. Reviewed-by: Marek Olšák --- src/amd/common/ac_nir_to_llvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index e6795bac97a..0878017f60d 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -2067,6 +2067,7 @@ static LLVMValueRef visit_load_var(struct ac_nir_context *ctx, unsigned const_index, vertex_index; get_deref_offset(ctx, deref, false, &vertex_index, NULL, &const_index, &indir_index); + assert(indir_index == NULL); return ctx->abi->load_inputs(ctx->abi, var->data.location, var->data.driver_location, -- 2.30.2