[Mesa-dev] [PATCH 08/19] panfrost/midgard: imul can only run on *mul

Alyssa Rosenzweig alyssa at rosenzweig.io
Mon Apr 22 05:04:15 UTC 2019


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 at rosenzweig.io>
---
 src/gallium/drivers/panfrost/midgard/helpers.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/midgard/helpers.h b/src/gallium/drivers/panfrost/midgard/helpers.h
index 4c2be223186..4cd488af9df 100644
--- a/src/gallium/drivers/panfrost/midgard/helpers.h
+++ b/src/gallium/drivers/panfrost/midgard/helpers.h
@@ -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 */
-- 
2.20.1



More information about the mesa-dev mailing list