From: Connor Abbott Date: Tue, 20 Aug 2019 10:43:33 +0000 (+0200) Subject: ac/nir: Assert GS input index is constant X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=400db1852bda58f0559c5612fcc378695380425a;p=mesa.git ac/nir: Assert GS input index is constant If it's not we silently ignore indir_index which is definitely a bug. Reviewed-by: Marek Olšák --- 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,