pan/midgard: Add mir_calculate_temp_count helper
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 4 Oct 2019 01:51:05 +0000 (21:51 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 4 Oct 2019 02:29:50 +0000 (22:29 -0400)
commit76a76de7af0bc0631a2705fedf17e743c6d73842
treeaed3778ab8812ec8d2407cd9e1709624f546aaf2
parentc59fae0fef4a4977811384c515ce35319c145708
pan/midgard: Add mir_calculate_temp_count helper

This allows us to fill in ctx->temp_count explicitly, even if we haven't
squished down the MIR.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/compiler.h
src/panfrost/midgard/mir.c