Bug 104730

Summary: VLC crashes on playback with "READ_ONLY without WC is disallowed"
Product: Mesa Reporter: EoD <EoD>
Component: Drivers/Gallium/radeonsiAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact: Default DRI bug account <dri-devel>
Severity: normal    
Priority: medium CC: maraeo
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: VLC gdb bt

Description EoD 2018-01-22 14:19:24 UTC
Created attachment 136896 [details]
VLC gdb bt

In current git master, vlc crashes on any playback with the above assertion. This is not happening on the same system with Mesa 17.3.3.

I assume the new assertion comes from the following patch: https://patchwork.freedesktop.org/patch/191502/
https://cgit.freedesktop.org/mesa/mesa/commit/?id=c7f84f6513f9cc9502b9cf3bdca9b95a6b87c98b
Comment 1 Christoph Haag 2018-01-22 17:18:07 UTC
This happens with vaapi and omx with assertions enabled.

My patch https://lists.freedesktop.org/archives/mesa-dev/2018-January/182646.html works around that by setting the RADEON_FLAG_GTT_WC for UVD buffers in the first place. Without the patch and with assertions disabled, this flag ends up being set anyways.

This might not be the right thing to do though, perhaps some other code around that needs to be fixed.
Comment 3 Marek Olšák 2018-01-27 01:22:37 UTC
Fixed by that commit.
Comment 4 EoD 2018-01-27 01:29:12 UTC
(In reply to Marek Olšák from comment #3)
> Fixed by that commit.

Yes, VLC plays fine again. Thanks.
Comment 5 EoD 2018-01-29 13:13:13 UTC
This does not seem to have made it into mesa 18.0.0-rc3.

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.