panfrost/midgard: iabs cannot run on mul
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 3 May 2019 03:27:18 +0000 (03:27 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 4 May 2019 19:08:51 +0000 (19:08 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/midgard/helpers.h

index 2be192a363b3a79e08737c98fe41479b827925cb..be2a45cd19db6c9c7b4ea1a15d858562f85fd16a 100644 (file)
@@ -178,7 +178,7 @@ static struct {
 
         /* Incredibly, iadd can run on vmul, etc */
         [midgard_alu_op_iadd]           = {"iadd", UNITS_MOST | OP_COMMUTES},
-        [midgard_alu_op_iabs]           = {"iabs", UNITS_MOST},
+        [midgard_alu_op_iabs]           = {"iabs", UNITS_ADD},
         [midgard_alu_op_isub]           = {"isub", UNITS_MOST},
         [midgard_alu_op_imul]           = {"imul", UNITS_MUL | OP_COMMUTES},
         [midgard_alu_op_imov]           = {"imov", UNITS_MOST | QUIRK_FLIPPED_R24},