diff --git a/src/virglrenderer.c b/src/virglrenderer.c index 2f65f24..a0d173a 100644 --- a/src/virglrenderer.c +++ b/src/virglrenderer.c @@ -1044,6 +1044,7 @@ virgl_renderer_resource_import_blob(const struct virgl_renderer_resource_import_ switch (args->blob_mem) { case VIRGL_RENDERER_BLOB_MEM_HOST3D: + case VIRGL_RENDERER_BLOB_MEM_GUEST_VRAM: break; default: return -EINVAL; diff --git a/src/virglrenderer.h b/src/virglrenderer.h index 223aed5..c6988af 100644 --- a/src/virglrenderer.h +++ b/src/virglrenderer.h @@ -298,6 +298,7 @@ VIRGL_EXPORT int virgl_renderer_context_create_with_flags(uint32_t ctx_id, #define VIRGL_RENDERER_BLOB_MEM_GUEST 0x0001 #define VIRGL_RENDERER_BLOB_MEM_HOST3D 0x0002 #define VIRGL_RENDERER_BLOB_MEM_HOST3D_GUEST 0x0003 +#define VIRGL_RENDERER_BLOB_MEM_GUEST_VRAM 0x0004 #define VIRGL_RENDERER_BLOB_FLAG_USE_MAPPABLE 0x0001 #define VIRGL_RENDERER_BLOB_FLAG_USE_SHAREABLE 0x0002