i965: Emit a dummy MEDIA_VFE_STATE before switching from GPGPU to 3D
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Thu, 1 Aug 2019 10:57:14 +0000 (13:57 +0300)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 8 Aug 2019 13:39:15 +0000 (13:39 +0000)
commitb8842bc3128a255677a1a8ea5207df46f8e54a04
treecce70187d7af24768bc3866b0fdcf99c174ed5ed
parent23a9d20997517dfff7f35e3a6c2b954564f0f6c4
i965: 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=110395
Suggested-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/brw_misc_state.c