panfrost/midgard: imul can only run on *mul
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 21 Apr 2019 04:09:10 +0000 (04:09 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 24 Apr 2019 02:22:31 +0000 (02:22 +0000)
This restriction makes sense logically. Not sure why it wasn't obeyed
before. In conjunction with previous commit's disclaimer, fixes
dEQP-GLES2.functional.shaders.loop.for_dynamic_iterations.*

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/midgard/helpers.h

index 4c2be223186ae1496148835c7b190da89cefa81c..4cd488af9df518277ba561302125c81bdb09dc1f 100644 (file)
@@ -215,7 +215,7 @@ static unsigned alu_opcode_props[256] = {
         [midgard_alu_op_iadd]           = UNITS_MOST,
         [midgard_alu_op_iabs]           = UNITS_MOST,
         [midgard_alu_op_isub]           = UNITS_MOST,
-        [midgard_alu_op_imul]           = UNITS_MOST,
+        [midgard_alu_op_imul]           = UNITS_MUL,
         [midgard_alu_op_imov]           = UNITS_MOST | QUIRK_FLIPPED_R24,
 
         /* For vector comparisons, use ball etc */