add support for VIRGL_CAP_V2_UNTYPED_RESOURCE
So far vrend_decode_ctx_attach_resource
rejects untyped resources (i.e., fd-based virgl_resource
s) because vrend_context
works with vrend_resource
exclusively. This MR fixes vrend_decode_ctx_attach_resource
to support untyped resources.
This is done by parking untyped resources in vrend_decode_ctx
until the type info is available. The new VIRGL_CCMD_PIPE_RESOURCE_SET_TYPE
supplies the type info which allows vrend_decode_ctx
to promote an untyped resource to a typed resource and proceed normally.
The corresponding Mesa change is mesa/mesa!8584 (merged).