virgl/vtest: execute a transfer_get when flushing the front buffer
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 12 Dec 2018 23:43:43 +0000 (15:43 -0800)
committerGurchetan Singh <gurchetansingh@chromium.org>
Thu, 18 Apr 2019 22:38:44 +0000 (15:38 -0700)
commit0dd661777a489d1134707ebc770af9e21e44e0dc
treeae3154cbee5ceb6a1e7c50c1c9dba7bbc99588f3
parent599d55371c83e2a535814c78b62f4293be79408d
virgl/vtest: execute a transfer_get when flushing the front buffer

This just moves everything to a helper function -- "flush_front_buffer"
will be used later.

virgl_vtest_resource_map / virgl_vtest_resource_unmap already take
care to map the display target.

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/winsys/virgl/vtest/virgl_vtest_winsys.c