iris: Emit single render target flush PIPE_CONTROL on format mismatch.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 1 May 2020 00:40:52 +0000 (17:40 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 23:12:22 +0000 (23:12 +0000)
commit46adb83a2930d346dd2ce2d4d19dfec02e0f7ca1
tree6d2f64b91d488ba0e478a922256faafb93aca90c
parentb92818849360d629bff186feb0f580a114600062
iris: Emit single render target flush PIPE_CONTROL on format mismatch.

The big-hammer iris_flush_depth_and_render_caches() is largely
redundant whenever a format mismatch is detected from
iris_cache_flush_for_render().  There is no need to kick the depth,
sampler nor constant caches in that case.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3875>
src/gallium/drivers/iris/iris_resolve.c