Bug 94675 - issue with mpv using OGL output on latest xf86-video-ati
Summary: issue with mpv using OGL output on latest xf86-video-ati
Status: CLOSED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 94470 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-03-23 19:20 UTC by John
Modified: 2018-07-20 09:20 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description John 2016-03-23 19:20:04 UTC
Hello,

between commit "Use render node for DRI3 if available" and "glamor: Return NullPixmap on failure to create shareable pixmap" something broke mpv's OGL output. I can bisect that if needed.

When I run -vo vdpau it works fine, but -vo opengl or -vo opengl-hq gives me no video in the window, and error lines such as:

"[vo/opengl-hq] after creating framebuffer texture: OpenGL error INVALID_OPERATION."
"[vo/opengl-hq] after rendering: OpenGL error INVALID_OPERATION."

and on quitting:
"[vo/opengl-hq/vdpau-glx] Before uninitializing OpenGL interop: OpenGL error INVALID_OPERATION."

Rolling back to commit "Set RADEON_GEM_NO_CPU_ACCESS flag for BOs which don't need CPU access" fixes it.

I see nothing in dmesg related.
Other OGL programs seem to still run fine (I tried glxgears and dolphin-emu quickly), so I am not sure.

I am on Linux 4.5, mesa git, Xorg 1.18.2, using a 280X.
I tried using mpv from latest git in case, but it didn't change anything from 0.16.

Thank you!
John
Comment 1 Michel Dänzer 2016-03-24 09:36:41 UTC
It's cd94248f ("Use render node for DRI3 if available"). The problem is likely related to the Gallium VDPAU code not supporting DRI3 yet. Until that's fixed, you can work around the problem with the environment variable LIBGL_DRI3_DISABLE=1.
Comment 2 John 2016-03-24 21:38:58 UTC
That works!

Thank you!
Comment 3 Michel Dänzer 2016-03-25 03:16:04 UTC
commit 8a6cd4bda05b9569b3dd0a5a75b2cc385b9ecba9
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Fri Mar 25 11:50:15 2016 +0900

    Revert "Use render node for DRI3 if available"
Comment 4 Michel Dänzer 2016-03-30 02:57:38 UTC
*** Bug 94470 has been marked as a duplicate of this bug. ***
Comment 5 John 2016-03-30 22:54:10 UTC
I've seen you reverted the revert, so I tried it.
Latest mesa and xf86 works fine again, I'm guessing this is now properly fixed.

Thank you!


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.