virgl: handle DONT_BLOCK and MAP_DIRECTLY
authorChia-I Wu <olvaffe@gmail.com>
Sat, 11 May 2019 04:23:12 +0000 (21:23 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Wed, 15 May 2019 20:51:28 +0000 (20:51 +0000)
commit659c5800e566d3fce90501c06e47c61f9623d663
tree51e460b7a997af08e6421b6bbd1a97da88bdd0b5
parente87186fc679c146c5d521139bb79c8eafa0a22f0
virgl: handle DONT_BLOCK and MAP_DIRECTLY

Handle PIPE_TRANSFER_DONT_BLOCK and PIPE_TRANSFER_MAP_DIRECTLY.
Make virgl_resource_transfer_prepare return an enum instead of a
bool for extensibility (e.g., instruct the callers to map
differently).

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