aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xorg/xorg_xv.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <[email protected]>2011-07-29 19:37:51 +0200
committerMichel Dänzer <[email protected]>2011-08-23 12:13:03 +0200
commit8f26b59f53d6d80bf7d3c39a4dd3c438a2c305a4 (patch)
treef0b935f682aa5a019e5338d049cf174be0840c37 /src/gallium/state_trackers/xorg/xorg_xv.c
parent29d7a0bb16dba1416e3a63f7f44cf82e307ac46a (diff)
st/xorg: Advertise support for XvMC
Formats were based on a patch sent to xf86-video-nouveau by Bryan Cain Signed-off-by: Maarten Lankhorst <[email protected]> [Michel Dänzer: Add xorg_xvmc.c to SConscript.]
Diffstat (limited to 'src/gallium/state_trackers/xorg/xorg_xv.c')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_xv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_xv.c b/src/gallium/state_trackers/xorg/xorg_xv.c
index af4992fc2ed..67fd6dfb501 100644
--- a/src/gallium/state_trackers/xorg/xorg_xv.c
+++ b/src/gallium/state_trackers/xorg/xorg_xv.c
@@ -750,6 +750,8 @@ xorg_xv_init(ScreenPtr pScreen)
if (num_adaptors) {
xf86XVScreenInit(pScreen, adaptors, num_adaptors);
+ if (textured_adapter)
+ xorg_xvmc_init(pScreen, textured_adapter->name);
} else {
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
"Disabling Xv because no adaptors could be initialized.\n");