virgl: move resource creation / import / destruction to common code
authorGurchetan Singh <gurchetansingh@chromium.org>
Mon, 3 Dec 2018 23:16:43 +0000 (15:16 -0800)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 19 Dec 2018 12:29:16 +0000 (13:29 +0100)
commitb45aa6290bfcecf6a33dd5eb20f333907fb09251
treecb8369a15af2e7f2fdee129ade49086f307a6666
parent1d3d311133f1f6aa3402e7b516646f71ec760b74
virgl: move resource creation / import / destruction to common code

We can remove some duplicated code.

Reviewed-by: Elie Tournier <elie.tournier@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