etnaviv: generalize FE stall before loading shader and sampler states
authorLucas Stach <l.stach@pengutronix.de>
Thu, 6 Feb 2020 16:11:03 +0000 (17:11 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 12 May 2020 14:13:31 +0000 (16:13 +0200)
commitdc6c42dc77e4bf0cb07037e038c4a50afa5a8143
treec18e915a7890667480b7e9db547e023968c47b68
parent8e5fc97be63e4c4296f16fe34523b68d39776fad
etnaviv: generalize FE stall before loading shader and sampler states

It seems that some of the new shader and sampler states added with
Halti0 are not self-synchronizing anymore. Make sure to stall the FE
before loading those new states to avoid corruption of the in-flight
draw state.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3963>
src/gallium/drivers/etnaviv/etnaviv_emit.c