mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 09:58:05 +02:00
ac: fix nir_intrinsic_shared_atomic_comp_swap handling
Following on from 49879f3778 this makes sure we use the correct
src index.
Fixes cts test:
KHR-GL46.compute_shader.atomic-case3
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
13cdf4e590
commit
f5305c1b44
1 changed files with 1 additions and 1 deletions
|
|
@ -3998,7 +3998,7 @@ static LLVMValueRef visit_var_atomic(struct ac_nir_context *ctx,
|
|||
|
||||
if (instr->intrinsic == nir_intrinsic_var_atomic_comp_swap ||
|
||||
instr->intrinsic == nir_intrinsic_shared_atomic_comp_swap) {
|
||||
LLVMValueRef src1 = get_src(ctx, instr->src[1]);
|
||||
LLVMValueRef src1 = get_src(ctx, instr->src[src_idx + 1]);
|
||||
result = LLVMBuildAtomicCmpXchg(ctx->ac.builder,
|
||||
ptr, src, src1,
|
||||
LLVMAtomicOrderingSequentiallyConsistent,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue