mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-18 05:08:06 +02:00
In the case of virtio_gpu, if the drm native context capset is supported, we should try loading the native driver before falling back to virgl. Previously this was done with hacks in pipe_virtio_gpu_create_screen(), but this also requires virgl's driconf to be the superset of virgl and all the nctx drivers. Instead add an optional loader callback to probe for nctx support. This is called with the drm capset, if the host supports the drm context type, to allow driver specific code to determine if the specific GPU is supported, so we can cleanly fall back to virgl if it does not (for ex, an old VM guest with a newer host, where mesa in the guest does not support the new GPU, but mesa in the host does). TODO: How to handle the dynamic loader case? Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28777> |
||
|---|---|---|
| .. | ||
| api.h | ||
| drisw_api.h | ||
| drm_driver.h | ||
| opencl_interop.h | ||
| sw_driver.h | ||
| sw_winsys.h | ||
| vdpau_dmabuf.h | ||
| vdpau_funcs.h | ||
| vdpau_interop.h | ||
| winsys_handle.h | ||
| xlibsw_api.h | ||