mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-06 03:50:26 +01:00
aco/optimizer: allow DPP with scalar src1 in alu_opt_info_is_valid
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39516>
This commit is contained in:
parent
d4c0318f48
commit
228cb29dae
1 changed files with 3 additions and 2 deletions
|
|
@ -932,8 +932,9 @@ alu_opt_info_is_valid(opt_ctx& ctx, alu_opt_info& info)
|
|||
if (is_dpp && info.operands.size() > 2 && !info.operands[1].op.isOfType(RegType::vgpr) &&
|
||||
info.operands[2].op.isOfType(RegType::vgpr))
|
||||
info.try_swap_operands(1, 2);
|
||||
if (is_dpp && info.operands.size() > 1 && !info.operands[1].op.isOfType(RegType::vgpr))
|
||||
return false; /* TODO: gfx11.5 */
|
||||
if (is_dpp && info.operands.size() > 1 && !info.operands[1].op.isOfType(RegType::vgpr) &&
|
||||
ctx.program->gfx_level < GFX11_5)
|
||||
return false;
|
||||
|
||||
/* dst SDWA */
|
||||
if (info.insert != SubdwordSel::dword) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue