anv: Emit a dummy MEDIA_VFE_STATE before switching from GPGPU to 3D
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 31 Jul 2019 15:42:24 +0000 (10:42 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 6 Aug 2019 05:46:28 +0000 (05:46 +0000)
commitbc612536eb2f0f77725103e53077ad5a28036ac3
tree50eaea505ca1751c56d6ded905c90d4689e92d7b
parent5544b2cbbd23df82192aea09d909b5cc2c1f1af9
anv: Emit a dummy MEDIA_VFE_STATE before switching from GPGPU to 3D

There is an object-level  preemption workaround which requires this.
However, even without object-level preemption, we seem to have issues
with geometry flickering when 3D and compute are combined in the same
batch and this appears to fix it.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109630
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111267
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/vulkan/genX_cmd_buffer.c