mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
radv: use load_global instead of load_global_amd for load_sample_positions_amd
For consistency. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37843>
This commit is contained in:
parent
fad10b91a6
commit
9553e56c67
1 changed files with 4 additions and 2 deletions
|
|
@ -292,8 +292,10 @@ lower_abi_instr(nir_builder *b, nir_intrinsic_instr *intrin, void *state)
|
|||
offset = nir_iadd(b, offset, nir_ishl_imm(b, intrin->src[1].ssa, 3));
|
||||
}
|
||||
|
||||
replacement =
|
||||
nir_load_global_amd(b, 2, 32, addr, offset, .base = sample_pos_offset, .access = ACCESS_NON_WRITEABLE);
|
||||
offset = nir_iadd_imm_nuw(b, offset, sample_pos_offset);
|
||||
addr = nir_iadd(b, addr, nir_u2u64(b, offset));
|
||||
replacement = nir_build_load_global(b, 2, 32, addr,
|
||||
.access = ACCESS_NON_WRITEABLE | ACCESS_CAN_SPECULATE | ACCESS_CAN_REORDER);
|
||||
break;
|
||||
}
|
||||
case nir_intrinsic_load_rasterization_samples_amd:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue