virgl: Use copy transfers for textures
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Fri, 24 May 2019 11:03:28 +0000 (14:03 +0300)
committerChia-I Wu <olvaffe@gmail.com>
Sat, 8 Jun 2019 04:45:42 +0000 (21:45 -0700)
commit236c55f650d096e63a5de36e66a47a2f46bab5d3
treeca0b892829102a126ed4b90765e118a83b791dee
parenta22c5df0794515369ce0c2b35ef8cd089b6975f3
virgl: Use copy transfers for textures

Extend copy transfers to also be used for busy textures.

Performance results:
Unigine Valley, qemu before: 22.7 FPS after: 23.1 FPS

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/drivers/virgl/virgl_resource.c
src/gallium/drivers/virgl/virgl_texture.c