On AMD hardware (at least Polaris and Raven), playing some videos with vdpau can result in a green screen. Steps to reproduce: - download https://www.libde265.org/hevc-bitstreams/bbb-1920x1080-cfg02.mkv - use x11 (ie not wayland) - mpv --vo=opengl --hwdec=vdpau bbb-1920x1080-cfg02.mkv This is a regression that started with commit: cb446dc0fa5c68f681108f4613560543aa4cf553 (from MR https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1226) Reverting the commits from this MR on master fixes the issue. AFAIU the problem is this line: /* do we have different screen objects ? */ if (res->screen != st->pipe->screen) { _mesa_error(ctx, GL_INVALID_OPERATION, "VDPAUMapSurfacesNV") Before this MR the screen objects were identical but now there are different.
Thanks Pierre for tracking this down and for filing the report. Removing myself from the CC list, the one copy of updates I get from the dri-devel mailing list is enough. :)
Created attachment 144748 [details] [review] Proof-of-concept fix Does this help for you? Note that I can only reproduce this if I artificially disable st_vdpau_video/output_surface_dma_buf(). Might be worth looking into why those aren't working for you.
(In reply to Michel Dänzer from comment #2) > Created attachment 144748 [details] [review] [review] > Proof-of-concept fix > > Does this help for you? > Yes the patch fixes the issue.
Thanks for the report, fixed by https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1364 .
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.