mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 01:34:11 +00:00
kdrive/fbdev: Enable X-Video support if available
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
committed by
Enrico Weigelt
parent
2a898cbaf1
commit
657eb49b85
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user