panfrost: Add the gallium glue to get panfrost loaded when panthor is detected
Needed if we don't want to force users to pass GALLIUM_DRIVER=panfrost. Reviewed-by: Antonino Maniscalco <antonino.maniscalco@collabora.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26358>
This commit is contained in:
@@ -82,6 +82,7 @@ static const struct drm_driver_descriptor *driver_descriptors[] = {
|
||||
&v3d_driver_descriptor,
|
||||
&vc4_driver_descriptor,
|
||||
&panfrost_driver_descriptor,
|
||||
&panthor_driver_descriptor,
|
||||
&asahi_driver_descriptor,
|
||||
&etnaviv_driver_descriptor,
|
||||
&tegra_driver_descriptor,
|
||||
@@ -289,6 +290,7 @@ pipe_loader_get_compatible_render_capable_device_fd(int kms_only_fd)
|
||||
#endif
|
||||
#if defined GALLIUM_PANFROST
|
||||
"panfrost",
|
||||
"panthor",
|
||||
#endif
|
||||
#if defined GALLIUM_V3D
|
||||
"v3d",
|
||||
|
||||
@@ -335,9 +335,11 @@ pipe_panfrost_create_screen(int fd, const struct pipe_screen_config *config)
|
||||
return screen ? debug_screen_wrap(screen) : NULL;
|
||||
}
|
||||
DRM_DRIVER_DESCRIPTOR(panfrost, NULL, 0)
|
||||
DRM_DRIVER_DESCRIPTOR_ALIAS(panfrost, panthor, NULL, 0)
|
||||
|
||||
#else
|
||||
DRM_DRIVER_DESCRIPTOR_STUB(panfrost)
|
||||
DRM_DRIVER_DESCRIPTOR_STUB(panthor)
|
||||
#endif
|
||||
|
||||
#ifdef GALLIUM_ASAHI
|
||||
|
||||
@@ -18,6 +18,7 @@ extern const struct drm_driver_descriptor virtio_gpu_driver_descriptor;
|
||||
extern const struct drm_driver_descriptor v3d_driver_descriptor;
|
||||
extern const struct drm_driver_descriptor vc4_driver_descriptor;
|
||||
extern const struct drm_driver_descriptor panfrost_driver_descriptor;
|
||||
extern const struct drm_driver_descriptor panthor_driver_descriptor;
|
||||
extern const struct drm_driver_descriptor asahi_driver_descriptor;
|
||||
extern const struct drm_driver_descriptor etnaviv_driver_descriptor;
|
||||
extern const struct drm_driver_descriptor tegra_driver_descriptor;
|
||||
|
||||
@@ -112,7 +112,7 @@ foreach d : [[with_gallium_kmsro, [
|
||||
[with_gallium_softpipe and with_gallium_drisw_kms, 'kms_swrast_dri.so'],
|
||||
[with_gallium_v3d, 'v3d_dri.so'],
|
||||
[with_gallium_vc4, 'vc4_dri.so'],
|
||||
[with_gallium_panfrost, 'panfrost_dri.so'],
|
||||
[with_gallium_panfrost, ['panfrost_dri.so', 'panthor_dri.so']],
|
||||
[with_gallium_etnaviv, 'etnaviv_dri.so'],
|
||||
[with_gallium_tegra, 'tegra_dri.so'],
|
||||
[with_gallium_crocus, 'crocus_dri.so'],
|
||||
|
||||
@@ -84,6 +84,7 @@ DEFINE_LOADER_DRM_ENTRYPOINT(vc4)
|
||||
|
||||
#if defined(GALLIUM_PANFROST)
|
||||
DEFINE_LOADER_DRM_ENTRYPOINT(panfrost)
|
||||
DEFINE_LOADER_DRM_ENTRYPOINT(panthor)
|
||||
#endif
|
||||
|
||||
#if defined(GALLIUM_ASAHI)
|
||||
|
||||
Reference in New Issue
Block a user