aco: don't allow SDWA on VOP3P instructions
authorDaniel Schürmann <daniel@schuermann.dev>
Mon, 20 Dec 2021 09:46:43 +0000 (10:46 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 31 Dec 2021 14:52:14 +0000 (14:52 +0000)
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13576>

src/amd/compiler/aco_ir.cpp

index 156227a..eee2eb2 100644 (file)
@@ -187,7 +187,7 @@ can_use_SDWA(chip_class chip, const aco_ptr<Instruction>& instr, bool pre_ra)
    if (!instr->isVALU())
       return false;
 
-   if (chip < GFX8 || instr->isDPP())
+   if (chip < GFX8 || instr->isDPP() || instr->isVOP3P())
       return false;
 
    if (instr->isSDWA())