Bug 19109 - drmOpen in XvMC doesn't work on non-linux OS
Summary: drmOpen in XvMC doesn't work on non-linux OS
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: Other FreeBSD
: medium normal
Assignee: Zou Nan hai
QA Contact: Xorg Project Team
Keywords: patch
Depends on:
Reported: 2008-12-15 20:33 UTC by Robert Noland
Modified: 2008-12-16 17:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

Fix drmOpen for non-linux 965 XvMC (1.76 KB, patch)
2008-12-15 20:35 UTC, Robert Noland
no flags Details | Splinter Review

Description Robert Noland 2008-12-15 20:33:28 UTC
965 XvMC call drmOpen by name, which fails if it isn't the first open.  On linux drmOpen has a fallback that gropes around in /proc and eventually succeeds.  On other OS it just fails.  I'm attaching a patch that corrects the 965 case.  I810 likely needs the same fix, but I haven't looked at it closely yet.
Comment 1 Robert Noland 2008-12-15 20:35:32 UTC
Created attachment 21192 [details] [review]
Fix drmOpen for non-linux 965 XvMC
Comment 2 Wang Zhenyu 2008-12-16 17:42:08 UTC
Pushed upstream. Close.

commit ed267072db7c58ee16a458fd3dc24ce3a2d0061d
Author: Robert Noland <rnoland@2hip.net>
Date:   Wed Dec 17 09:27:30 2008 +0800

    Fix drmOpen for non-linux 965 XvMC
    drmOpen by name only works on linux after falling back to groping around
    in /proc.  This doesn't work on other OS.
    Signed-off-by: Robert Noland <rnoland@2hip.net>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.