Bug 19109

Summary: drmOpen in XvMC doesn't work on non-linux OS
Product: xorg Reporter: Robert Noland <rnoland>
Component: Driver/intelAssignee: Zou Nan hai <nanhai.zou>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium Keywords: patch
Version: git   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Fix drmOpen for non-linux 965 XvMC none

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.