Skip to content
Snippets Groups Projects
Commit 06a883cf authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

pipe-loader,gallium/drm: Fix the kmsro pipe_loader target

Include drm_helper.h to define the driver descriptor again, but with a
new define GALLIUM_KMSRO_ONLY to disable defining descriptors for the
drivers that kmsro uses.

Fixes clinfo on Panfrost.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4002


Fixes: 9ec28b8d ("gallium/drm: Deduplicate screen creation for the dynamic (clover) pipe loader.")
Acked-by: default avatarEric Anholt <eric@anholt.net>
Reviewed-by: default avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <!9380>
parent aa53665f
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,15 @@ const struct drm_driver_descriptor descriptor_name = { \
#endif
#ifdef GALLIUM_KMSRO_ONLY
#undef GALLIUM_V3D
#undef GALLIUM_VC4
#undef GALLIUM_FREEDRENO
#undef GALLIUM_ETNAVIV
#undef GALLIUM_PANFROST
#undef GALLIUM_LIMA
#endif
#ifdef GALLIUM_I915
#include "i915/drm/i915_drm_public.h"
#include "i915/i915_public.h"
......
......@@ -2,3 +2,5 @@
#include "target-helpers/inline_debug_helper.h"
#include "frontend/drm_driver.h"
#include "kmsro/drm/kmsro_drm_public.h"
#define GALLIUM_KMSRO_ONLY
#include "target-helpers/drm_helper.h"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment