mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 11:10:27 +01:00
radeonsi/nir: fix si_nir_load_tcs_varyings() for outputs
We were incorrectly using the input info for outputs. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
9740c8a8aa
commit
7be5f30bb1
1 changed files with 11 additions and 2 deletions
|
|
@ -1254,11 +1254,20 @@ static LLVMValueRef si_nir_load_tcs_varyings(struct ac_shader_abi *abi,
|
|||
param_index = LLVMConstInt(ctx->i32, const_index, 0);
|
||||
}
|
||||
|
||||
ubyte *names;
|
||||
ubyte *indices;
|
||||
if (load_input) {
|
||||
names = info->input_semantic_name;
|
||||
indices = info->input_semantic_index;
|
||||
} else {
|
||||
names = info->output_semantic_name;
|
||||
indices = info->output_semantic_index;
|
||||
}
|
||||
|
||||
dw_addr = get_dw_address_from_generic_indices(ctx, stride, dw_addr,
|
||||
vertex_index, param_index,
|
||||
driver_location,
|
||||
info->input_semantic_name,
|
||||
info->input_semantic_index,
|
||||
names, indices,
|
||||
is_patch);
|
||||
|
||||
LLVMValueRef value[4];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue