iris: Add maybe_flush calls to texture_barrier and memory_barrier
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Jun 2019 14:50:56 +0000 (09:50 -0500)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Jun 2019 18:32:15 +0000 (13:32 -0500)
commit5e501ffeb245c3e2e4f93260495aaff960cd8876
tree394070993c7c4021ed4440eb9645b2921000e7f0
parentd4a4384b315a4b74357b30f868f4d1c25a571083
iris: Add maybe_flush calls to texture_barrier and memory_barrier

Otherwise, tests which loop on glMemoryBarrier may run us out of
batch space with piles of flushing.  (Ideally, we'd elide those bonus
PIPE_CONTROLs, but presumably this isn't that common of a case...)

Piglit's arb_pipeline_statistics_query-comp would hit this case after
some of the next patches remove other PIPE_CONTROLs with maybe_flushes.
src/gallium/drivers/iris/iris_pipe_control.c