mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
ac/nir: Account for compact array index in GS input load from LDS.
Mirrors the vram path.
Fixes: d4ecc3c929 'ac/nir: Add loading from LDS for merged GS.'
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
67648c0faa
commit
ad727b96b6
1 changed files with 1 additions and 1 deletions
|
|
@ -3011,7 +3011,7 @@ load_gs_input(struct nir_to_llvm_context *ctx,
|
|||
if (ctx->ac.chip_class >= GFX9) {
|
||||
LLVMValueRef dw_addr = ctx->gs_vtx_offset[vtx_offset_param];
|
||||
dw_addr = LLVMBuildAdd(ctx->ac.builder, dw_addr,
|
||||
LLVMConstInt(ctx->ac.i32, param * 4 + i, 0), "");
|
||||
LLVMConstInt(ctx->ac.i32, param * 4 + i + const_index, 0), "");
|
||||
value[i] = lds_load(ctx, dw_addr);
|
||||
} else {
|
||||
args[0] = ctx->esgs_ring;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue