pan/mdg: prevent csel_v from being scheduled alongside writeout
authorItalo Nicola <italonicola@collabora.com>
Fri, 26 Feb 2021 10:52:55 +0000 (10:52 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 1 Mar 2021 17:24:06 +0000 (17:24 +0000)
commit0d80dc15881292e2be91e0d3db58f89afa84a680
treeef69d2bb1b53ce64a6e3e989242f351dde5cfddd
parent4f969d796d6f8dbd3bc96d518d5f6d268b4a2d56
pan/mdg: prevent csel_v from being scheduled alongside writeout

Midgard writeout arguments need to be written to in the same bundle the
writeout happens.  Both csel, csel_v and their float variants also
require their conditional to be performed on the same bundle.

This patch prevents scheduling csel the same bundle as a writeout,
fixing the scheduling issue.

But... there's still room for optimizations since in some cases it might
be possible to fit all these instructions in the same bundle.

No shader-db changes.

Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9340>
src/panfrost/midgard/midgard_schedule.c