diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-01-02 14:11:31 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-01-02 14:11:31 +0800 |
commit | a03aca101d4d51ed2279a99d1137ce3b7ef364e2 (patch) | |
tree | ccd261a18792af7233d832a2f0df412eb22a69bc /src/i830_hwmc.c | |
parent | 0fd769b5882058e5ebf17ee1c1e35b4a3d46e6b0 (diff) |
xvmc: setup driver info for XvMCGetDRInfo request
User don't need to have XvMCConfig file then, if ld.so can
find libIntelXvMC.so in ld path.
Diffstat (limited to 'src/i830_hwmc.c')
-rw-r--r-- | src/i830_hwmc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i830_hwmc.c b/src/i830_hwmc.c index acb89e61..7586ff71 100644 --- a/src/i830_hwmc.c +++ b/src/i830_hwmc.c @@ -96,6 +96,7 @@ Bool intel_xvmc_screen_init(ScreenPtr pScreen) { ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; I830Ptr pI830 = I830PTR(pScrn); + DRIInfoPtr pDRIInfo = pI830->pDRIInfo; if (!xvmc_driver) return FALSE; @@ -111,6 +112,10 @@ Bool intel_xvmc_screen_init(ScreenPtr pScreen) "[XvMC] Failed to initialize XvMC.\n"); return FALSE; } + + xf86XvMCRegisterDRInfo(pScreen, INTEL_XVMC_LIBNAME, + pDRIInfo->busIdString, + INTEL_XVMC_MAJOR, INTEL_XVMC_MINOR, INTEL_XVMC_PATCHLEVEL); return TRUE; } |