virgl: Increase the shader transfer buffer by doubling the size
authorGert Wollny <gert.wollny@collabora.com>
Mon, 16 Dec 2019 20:48:09 +0000 (21:48 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Dec 2019 08:07:51 +0000 (08:07 +0000)
commitcffa7bb99084eb9e5988c2be4427f6b188cc7bbe
tree2a361dec2ab9883d41f2ffd2966e4a926bf7fe66
parent2da68c8649b6061c38e303da962e236985d76fc5
virgl: Increase the shader transfer buffer by doubling the size

With only linearly increasing the size of the shader transfer buffer
the transfer of very large shaders may fail, so with each attempt double
the size of the buffer.

CTS:
  dEQP-GLES31.functional.ssbo.layout.random.all_shared_buffer.48
  for VTK-GL-CTS b5dcfb9c5 and newer

virglrenderer bug:
  https://gitlab.freedesktop.org/virgl/virglrenderer/issues/150

Fixes: a8987b88ff1db4ac00720a9b56c4bc3aeb666537
    virgl: add driver for virtio-gpu 3D (v2)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3121>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3121>
src/gallium/drivers/virgl/virgl_encode.c