summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-02-27 05:32:16 +0000
committerAlyssa Rosenzweig <[email protected]>2019-03-04 05:02:58 +0000
commit93eeba623bd3e9a1b106e82f40147681c3011535 (patch)
treeb802fe687346b538a68e247ac2bfc8fee590e495
parent25bbb44dce347b37caa5efdb7d5dfccbe593427e (diff)
panfrost/midgard: Promote smul to vmul
smul comes first in the pipeline, before vmul. Until we have a full instruction scheduler, it's better to have vmul prioritized to maximize bundle size. Signed-off-by: Alyssa Rosenzweig <[email protected]> Tested-by: Tomeu Vizoso <[email protected]
-rw-r--r--src/gallium/drivers/panfrost/midgard/midgard_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
index f533572c05d..e37037ac737 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c
+++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
@@ -2162,7 +2162,7 @@ schedule_bundle(compiler_context *ctx, midgard_block *block, midgard_instruction
if ((units & UNIT_SADD) && !(control & UNIT_SADD))
unit = UNIT_SADD;
else if (units & UNIT_SMUL)
- unit = UNIT_SMUL;
+ unit = ((units & UNIT_VMUL) && !(control & UNIT_VMUL)) ? UNIT_VMUL : UNIT_SMUL;
else if ((units & UNIT_VADD) && !(control & UNIT_VADD))
unit = UNIT_VADD;
else