01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cayman PRO [Radeon HD 6950]
Device: AMD CAYMAN (DRM 2.50.0 / 4.17.14-gentoo, LLVM 6.0.1) (0x6719)
Using Kodi to watch tv using the HTSP plugin, using VDPAU for decoding:
kodi.bin: ../mesa-18.2.0-rc4/src/mesa/state_tracker/st_sampler_view.c:546: st_get_texture_sampler_view_from_stobj: Assertion `stObj->level_override || last_level(stObj) == view->u.tex.last_level' failed.
VAAPI decoding works.
Created attachment 142078 [details]
mpv.conf triggering the issue
This also appears when trying to watch videos in mpv with the OpenGL video output using VDPAU hardware decoding and the VDPAU post processing filter. The video does not play and the failed assertion is thrown to the command line. Interestingly, hardware decoding using VDPAU without activating the post processing filter does not hit the failed assertion.
I am using a Radeon RX 580 with a recent git mesa (commit 3a95396f3c6f51d38f044375bbd6698ed6cb28f4), a pretty recent LLVM 8 version and kernel 4.18.14.
The issue can be reproduced by trying to play the video linked in  with mpv (with youtube-dl support) and the attached mpv configuration. When I comment out the line containing vdpaupp, the video starts to play.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/644.