From 87cca891c39da2282f122139c9514c43a14f98bb Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 20 Aug 2019 12:47:39 +0200 Subject: [PATCH] radeonsi/nir: Add const_index when loading GS inputs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes loading GS inputs in structures or arrays. Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 8f6719b..9492fb7 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -1611,7 +1611,7 @@ static LLVMValueRef si_nir_load_input_gs(struct ac_shader_abi *abi, offset *= 2; offset += component; - value[i + component] = si_llvm_load_input_gs(&ctx->abi, driver_location / 4, + value[i + component] = si_llvm_load_input_gs(&ctx->abi, driver_location / 4 + const_index, vertex_index, type, offset); } -- 2.7.4