mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
radeonsi: fix the coordinate overloading of llvm.amdgcn.image.atomic.cmpswap.*
Fixes GL45-CTS.shader_image_load_store.basic-allTargets-atomic* Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
35e2bfa6d9
commit
76a940893d
1 changed files with 7 additions and 2 deletions
|
|
@ -4195,10 +4195,15 @@ static void atomic_emit(
|
|||
snprintf(intrinsic_name, sizeof(intrinsic_name),
|
||||
"llvm.amdgcn.buffer.atomic.%s", action->intr_name);
|
||||
} else {
|
||||
LLVMValueRef coords;
|
||||
char coords_type[8];
|
||||
|
||||
build_type_name_for_intr(LLVMTypeOf(emit_data->args[1]),
|
||||
coords_type, sizeof(coords_type));
|
||||
if (inst->Instruction.Opcode == TGSI_OPCODE_ATOMCAS)
|
||||
coords = emit_data->args[2];
|
||||
else
|
||||
coords = emit_data->args[1];
|
||||
|
||||
build_type_name_for_intr(coords, coords_type, sizeof(coords_type));
|
||||
snprintf(intrinsic_name, sizeof(intrinsic_name),
|
||||
"llvm.amdgcn.image.atomic.%s.%s",
|
||||
action->intr_name, coords_type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue