virgl: virgl_transfer should own its virgl_resource
authorChia-I Wu <olvaffe@gmail.com>
Wed, 15 May 2019 22:38:49 +0000 (15:38 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Thu, 13 Jun 2019 01:20:30 +0000 (18:20 -0700)
commit900a80f9e4fd3e080c3d048eae8c6e113e9326ba
tree71217d6b1add702214d3d409bc93ae2423bd074b
parent74051efbea8f330fcd4b23bfe4d1ccf0c66d0e7e
virgl: virgl_transfer should own its virgl_resource

We should avoid having potentially dangling pointers to
pipe_resources in general.

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