gallium: drop dynamic pipe-loader leftovers

Fixes: 30c5c7d811 ("gallium: remove dynamic pipe-loader")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35185>
This commit is contained in:
Eric Engestrom
2025-05-27 17:23:04 +02:00
committed by Marge Bot
parent 0a9b871b9e
commit 6ec69e5a07
2 changed files with 1 additions and 21 deletions
@@ -19,30 +19,14 @@ const struct drm_driver_descriptor descriptor_name = { \
##__VA_ARGS__ \
};
/* The static pipe loader refers to the *_driver_descriptor structs for all
/* The pipe loader refers to the *_driver_descriptor structs for all
* drivers, regardless of whether they are configured in this Mesa build, or
* whether they're included in the specific gallium target. The target (dri,
* vdpau, etc.) will include this header with the #defines for the specific
* drivers it's including, and the disabled drivers will have a descriptor
* with a stub create function logging the failure.
*
* The dynamic pipe loader instead has target/pipeloader/pipe_*.c including
* this header in a pipe_*.so for each driver which will have one driver's
* GALLIUM_* defined. We make a single driver_descriptor entrypoint that is
* dlsym()ed by the dynamic pipe loader.
*/
#ifdef PIPE_LOADER_DYNAMIC
#define DRM_DRIVER_DESCRIPTOR(driver, driconf, driconf_count, ...) \
PUBLIC DEFINE_DRM_DRIVER_DESCRIPTOR(driver_descriptor, driver, driconf, driconf_count, pipe_##driver##_create_screen, __VA_ARGS__)
#define DRM_DRIVER_DESCRIPTOR_STUB(driver)
#define DRM_DRIVER_DESCRIPTOR_ALIAS(driver, alias, driconf, driconf_count)
#else
#define DRM_DRIVER_DESCRIPTOR(driver, driconf, driconf_count, ...) \
DEFINE_DRM_DRIVER_DESCRIPTOR(driver##_driver_descriptor, driver, driconf, driconf_count, pipe_##driver##_create_screen, __VA_ARGS__)
@@ -59,8 +43,6 @@ const struct drm_driver_descriptor descriptor_name = { \
DEFINE_DRM_DRIVER_DESCRIPTOR(alias##_driver_descriptor, alias, driconf, \
driconf_count, pipe_##driver##_create_screen, NULL)
#endif
#ifdef GALLIUM_KMSRO_ONLY
#undef GALLIUM_V3D
#undef GALLIUM_VC4
@@ -44,6 +44,4 @@ struct drm_driver_descriptor
bool (*probe_nctx)(int drm_fd, const struct virgl_renderer_capset_drm *caps);
};
extern const struct drm_driver_descriptor driver_descriptor;
#endif