summaryrefslogtreecommitdiff
path: root/src/uxa/intel_glamor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uxa/intel_glamor.c')
-rw-r--r--src/uxa/intel_glamor.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/uxa/intel_glamor.c b/src/uxa/intel_glamor.c
index 4d1c7679..e1e2a742 100644
--- a/src/uxa/intel_glamor.c
+++ b/src/uxa/intel_glamor.c
@@ -52,6 +52,17 @@ intel_glamor_exchange_buffers(struct intel_screen_private *intel,
glamor_egl_exchange_buffers(src, dst);
}
+XF86VideoAdaptorPtr intel_glamor_xv_init(ScreenPtr screen, int num_ports)
+{
+ ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ if ((intel->uxa_flags & UXA_USE_GLAMOR) == 0)
+ return NULL;
+
+ return glamor_xv_init(screen, num_ports);
+}
+
Bool
intel_glamor_create_screen_resources(ScreenPtr screen)
{