mesa/src/gallium/include/frontend
Rob Clark 2ea4a59ab7 loader: Add better support for virtgpu nctx driver loading
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>
2024-05-23 20:02:03 +00:00
..
api.h util/driconf: add workarounds for the Chronicles of Riddick 2023-08-24 22:38:56 +00:00
drisw_api.h util: include "util/compiler.h" instead of "pipe/p_compiler.h" 2023-06-27 18:18:30 +08:00
drm_driver.h loader: Add better support for virtgpu nctx driver loading 2024-05-23 20:02:03 +00:00
opencl_interop.h
sw_driver.h util: include "util/compiler.h" instead of "pipe/p_compiler.h" 2023-06-27 18:18:30 +08:00
sw_winsys.h sw_winsys: add displaytarget_create_mapped 2024-04-05 16:05:20 +00:00
vdpau_dmabuf.h
vdpau_funcs.h
vdpau_interop.h
winsys_handle.h winsys: add more stride members to winsys_handle 2024-04-05 16:05:21 +00:00
xlibsw_api.h