Skip to content

Commit ddb4aff

Browse files
DadSchoorse1ace
authored andcommitted
aco/gfx11+: disable v_pk_fmac_f16_dpp
Public docs are apparently wrong: llvm/llvm-project#79598 (comment) Cc: mesa-stable Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27533> (cherry picked from commit e927c50)
1 parent 963ad46 commit ddb4aff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.pick_status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2134,7 +2134,7 @@
21342134
"description": "aco/gfx11+: disable v_pk_fmac_f16_dpp",
21352135
"nominated": true,
21362136
"nomination_type": 0,
2137-
"resolution": 0,
2137+
"resolution": 1,
21382138
"main_sha": null,
21392139
"because_sha": null,
21402140
"notes": null

src/amd/compiler/aco_ir.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,9 @@ can_use_DPP(amd_gfx_level gfx_level, const aco_ptr<Instruction>& instr, bool dpp
414414
instr->opcode == aco_opcode::v_dot2_f32_bf16;
415415
}
416416

417+
if (instr->opcode == aco_opcode::v_pk_fmac_f16)
418+
return gfx_level < GFX11;
419+
417420
/* there are more cases but those all take 64-bit inputs */
418421
return instr->opcode != aco_opcode::v_madmk_f32 && instr->opcode != aco_opcode::v_madak_f32 &&
419422
instr->opcode != aco_opcode::v_madmk_f16 && instr->opcode != aco_opcode::v_madak_f16 &&

0 commit comments

Comments
 (0)