virgl: Store the virgl_hw_res for copy transfers
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Wed, 26 Jun 2019 09:12:17 +0000 (12:12 +0300)
committerChia-I Wu <olvaffe@gmail.com>
Fri, 28 Jun 2019 04:30:02 +0000 (04:30 +0000)
commit6a03f255229b6e96d2bda0ce09bf6b260c9aa43a
tree7fb1e43910b54cbcfdadcf9c3e14ce633473c6e8
parentbed305fb7a1ad8d887fc6fa64e79e30cbd03bba1
virgl: Store the virgl_hw_res for copy transfers

Store the virgl_hw_res instead of the pipe_resource for copy transfer
sources. This prepares the codebase for a change to provide only the
virgl_hw_res for the staging buffers in upcoming commits.

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