pipe-loader: Try loading freedreno for virtgpu device
authorRob Clark <robdclark@chromium.org>
Wed, 2 Feb 2022 19:53:36 +0000 (11:53 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 25 Mar 2022 02:03:30 +0000 (02:03 +0000)
commit03a70f554acaba5b097133ea3eb1de7738ac7ac5
treef7c9066f06fc1ca90e97e269805b4530ba0a5aad
parent802f4da5eecc4d23adc29f212c5e7fcf491e1349
pipe-loader: Try loading freedreno for virtgpu device

Freedreno will check if the virtgpu supports the pass-thru context, and
if not will bail, falling back to virgl.

TODO this requires that virgl is also enabled in the mesa build, even if
it is not needed.. maybe there is a better way to handle this?

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14900>
src/gallium/auxiliary/target-helpers/drm_helper.h
src/gallium/targets/dri/meson.build
src/gallium/targets/dri/target.c