virgl: wait after a flush
authorGurchetan Singh <gurchetansingh@chromium.org>
Tue, 16 Apr 2019 03:36:54 +0000 (20:36 -0700)
committerGurchetan Singh <gurchetansingh@chromium.org>
Thu, 18 Apr 2019 22:38:04 +0000 (15:38 -0700)
commit599d55371c83e2a535814c78b62f4293be79408d
tree8195d33c840bce00b157dbdf216642ca7c4baf67
parentdfd79079daf08cba0e1d5defc18dedeffb0c6327
virgl: wait after a flush

We really need to wait under certain circumstances, or we can end
up writing to memory the same time the host is reading.

Partial revert of d6dc68 ("virgl: use uint16_t mask instead of separate booleans").

Test cases:
   - dEQP-GLES31.functional.texture.texture_buffer.render_modify.as_vertex_array.bufferdata
     on vtest protocol version 2
   - Flickering during Alien Isolation
Fixes: d6dc68 ("virgl: use uint16_t mask instead of separate booleans")
Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-By: Gert Wollny <gert.wollny@collabora.com>
Reviewed-By: Piotr Rak <p.rak@samsung.com>
src/gallium/drivers/virgl/virgl_buffer.c
src/gallium/drivers/virgl/virgl_context.c
src/gallium/drivers/virgl/virgl_texture.c