diff options
author | Rob Clark <robdclark@chromium.org> | 2022-02-02 10:56:26 -0800 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-03-25 02:03:30 +0000 |
commit | 802f4da5eecc4d23adc29f212c5e7fcf491e1349 (patch) | |
tree | b33ac4d49e8e6c7bbe52ef60e8b4418a02561489 /meson_options.txt | |
parent | 2200d674e4b6b6fdafb30455e350a503d01088c6 (diff) |
freedreno/drm: Add virtio backend
Add a new backend to enable using native driver in a VM guest, via a new
virtgpu context type which (indirectly) makes host kernel interface
available in guest and handles the details of mapping buffers to guest,
etc.
Note that fence-fd's are currently a bit awkward, in that they get
signaled by the guest kernel driver (drm/virtio) once virglrenderer in
the host has processed the execbuf, not when host kernel has signaled
the submit fence. For passing buffers to the host (virtio-wl) the egl
context in virglrenderer is used to create a fence on the host side.
But use of out-fence-fd's in guest could have slightly unexpected
results. For this reason we limit all submitqueues to default priority
(so they cannot be preepmted by host egl context). AFAICT virgl and
venus have a similar problem, which will eventually be solveable once we
have RESOURCE_CREATE_SYNC.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14900>
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 0bff7efa29f..7eaf69e28d8 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -202,6 +202,12 @@ option( description : 'use kgsl backend for freedreno vulkan driver', ) option( + 'freedreno-virtio', + type : 'boolean', + value : false, + description : 'use experimental virtio backend for freedreno (currently only gallium driver)', +) +option( 'imagination-srv', type : 'boolean', value : false, |