virgl: Use virgl_resource_transfer_map for textures
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Fri, 5 Jul 2019 11:27:11 +0000 (14:27 +0300)
committerChia-I Wu <olvaffe@gmail.com>
Sun, 7 Jul 2019 02:30:37 +0000 (19:30 -0700)
commite5b54d001897b44cc75c8d5ca15330fd9d26af8a
tree489bdda73f8856c3de987436f3fe201bebad1764
parentf8975f8f2f51e265609d17875b6850c7b2ac5313
virgl: Use virgl_resource_transfer_map for textures

Replace custom texture map code (for maps which don't require resolve)
with virgl_resource_transfer_map.

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