kdrive/fbdev: Enable X-Video support if available

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111
2026-01-27 05:29:43 +02:00
committed by Enrico Weigelt
parent 2a898cbaf1
commit 657eb49b85
3 changed files with 23 additions and 0 deletions

View File

@@ -16,10 +16,15 @@
#include "fbdev.h"
#ifdef XV
#include "kxv.h"
#endif
const char *fbdev_glvnd_provider = "mesa";
Bool es_allowed = TRUE;
Bool force_es = FALSE;
Bool fbXVAllowed = TRUE;
static void
fbdev_glamor_egl_cleanup(FbdevScrPriv *scrpriv)
@@ -101,6 +106,12 @@ fbdevInitAccel(ScreenPtr pScreen)
}
#endif
#ifdef XV
if (fbXVAllowed) {
kd_glamor_xv_init(pScreen);
}
#endif
return TRUE;
}

View File

@@ -66,6 +66,9 @@ extern Bool fbDisableShadow;
extern const char *fbdev_glvnd_provider;
extern Bool es_allowed;
extern Bool force_es;
#ifdef XV
extern Bool fbXVAllowed;
#endif
#endif
Bool fbdevCardInit(KdCardInfo * card);

View File

@@ -76,6 +76,8 @@ ddxUseMsg(void)
("-force-gl Force glamor to only use GL contexts\n");
ErrorF
("-force-es Force glamor to only use GLES contexts\n");
ErrorF
("-noxv Disable X-Video support\n");
ErrorF("\n");
}
@@ -115,6 +117,13 @@ ddxProcessArgument(int argc, char **argv, int i)
force_es = TRUE;
return 1;
}
#ifdef XV
if (!strcmp(argv[i], "-noxv")) {
fbXVAllowed = FALSE;
return 1;
}
#endif
#endif
return KdProcessArgument(argc, argv, i);