virgl: add virgl_rebind_resource
authorChia-I Wu <olvaffe@gmail.com>
Thu, 16 May 2019 22:42:01 +0000 (15:42 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 17 Jun 2019 16:36:31 +0000 (09:36 -0700)
commit9975a0a84ca2ee18a0f051df44932bd7b2284a02
treedd70f57ec75fc1763d6ed223c5520586bf61fdb1
parent7e0508d9aa9575db7f608eae0c5337e2a0634197
virgl: add virgl_rebind_resource

We are going support reallocating the HW resource for a
virgl_resource.  When that happens, the virgl_resource needs to be
rebound to the context.

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