mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
radv: Fix loading task shader ring buffer addresses.
I forgot to use task_ring_offsets instead of ring_offsets
when I ported this code to the new ABI.
Fixes: a8bdcf3c92
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16500>
This commit is contained in:
parent
063a61a840
commit
e0bec58340
1 changed files with 6 additions and 1 deletions
|
|
@ -39,7 +39,12 @@ typedef struct {
|
|||
static nir_ssa_def *
|
||||
load_ring(nir_builder *b, unsigned ring, lower_abi_state *s)
|
||||
{
|
||||
nir_ssa_def *ring_offsets = ac_nir_load_arg(b, &s->args->ac, s->args->ring_offsets);
|
||||
struct ac_arg arg =
|
||||
b->shader->info.stage == MESA_SHADER_TASK ?
|
||||
s->args->task_ring_offsets :
|
||||
s->args->ring_offsets;
|
||||
|
||||
nir_ssa_def *ring_offsets = ac_nir_load_arg(b, &s->args->ac, arg);
|
||||
ring_offsets = nir_pack_64_2x32_split(b, nir_channel(b, ring_offsets, 0), nir_channel(b, ring_offsets, 1));
|
||||
return nir_load_smem_amd(b, 4, ring_offsets, nir_imm_int(b, ring * 16u), .align_mul = 4u);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue