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 <alyssa@rosenzweig.io>
Tested-by: Tomeu Vizoso <tomeu.vizoso@collabora.com
This commit is contained in:
Alyssa Rosenzweig
2019-02-27 05:32:16 +00:00
parent 25bbb44dce
commit 93eeba623b
@@ -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