Skip to content

virgl: add support for untyped resources

Chia-I Wu requested to merge olv/mesa:untyped-res into master

An untyped resource is a virgl_resource in virglrenderer that is fd-based and has no type information. For an untyped resource to be usable by vrend_context, Mesa needs specify the type info (width, height, format, etc.) such that virglrenderer knows how to create the vrend_resource from the fd.

This MR adds VIRGL_CCMD_PIPE_RESOURCE_SET_TYPE and calls it from virgl_resource_from_handle.

@gurchetansingh @mrisaacb

Merge request reports