freedreno/ir3: move ring_wfi() further up call chain
authorRob Clark <robdclark@chromium.org>
Thu, 1 Aug 2019 02:00:59 +0000 (19:00 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 13 Aug 2019 15:11:26 +0000 (08:11 -0700)
commit4080dfb8af9c14693499baa09294a2f6187dbcc0
tree500008330526c9b560c63e39b74df85d0cba38ba
parentc6fab232c85d04e8de80ce4e8753fb1516d69fcd
freedreno/ir3: move ring_wfi() further up call chain

Hoist them out of code-paths that will eventually be called directly for
various a6xx+ const related stateobjs.

This ends up duplicating one constlen check in ir3_emit_vs_consts(), to
avoid what could otherwise be an unnecessary WFI on older gens.

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/ir3/ir3_gallium.c