summaryrefslogtreecommitdiff
path: root/src/radeon_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_video.c')
-rw-r--r--src/radeon_video.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c
index 58e3920b..edd6d54b 100644
--- a/src/radeon_video.c
+++ b/src/radeon_video.c
@@ -315,6 +315,16 @@ void RADEONInitVideo(ScreenPtr pScreen)
if(num_adaptors)
xf86XVScreenInit(pScreen, adaptors, num_adaptors);
+ if(texturedAdaptor) {
+ XF86MCAdaptorPtr xvmcAdaptor = RADEONCreateAdaptorXvMC(pScreen, texturedAdaptor->name);
+ if(xvmcAdaptor) {
+ if(!xf86XvMCScreenInit(pScreen, 1, &xvmcAdaptor))
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "[XvMC] Failed to initialize extension.\n");
+ else
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[XvMC] Extension initialized.\n");
+ }
+ }
+
if(newAdaptors)
free(newAdaptors);