virgl: Use virgl_staging_mgr
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Mon, 24 Jun 2019 13:57:46 +0000 (16:57 +0300)
committerChia-I Wu <olvaffe@gmail.com>
Fri, 28 Jun 2019 04:30:02 +0000 (04:30 +0000)
commit5388be039bc8dc4c0ed2875d0ca35c6f37053948
tree3de3edc9787ee74e39e16e5b15778b096371e730
parent790d1a0b17376ac3c53c123f7a1b117220d71f95
virgl: Use virgl_staging_mgr

Use an instance of virgl_staging_mgr instead of u_upload_mgr to handle
the staging buffer. This removes the need to track the availability
of the staging manager, since virgl_staging_mgr can handle concurrent
active allocations.

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_context.c
src/gallium/drivers/virgl/virgl_context.h
src/gallium/drivers/virgl/virgl_resource.c
src/gallium/drivers/virgl/virgl_resource.h
src/gallium/drivers/virgl/virgl_texture.c