Summary: | media-libs/mesa-19.1.0_rc[12]: radeon r600/cedar vdpau support broken | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michał Górny <mgorny> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | egorov_egor, gentoo, holger, mail |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.freedesktop.org/show_bug.cgi?id=110783 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | media-libs:mesa-19.1.0_rc2:20190518-072847.log.bz2 |
Description
Michał Górny
![]() ![]() ![]() ![]() Created attachment 577230 [details]
media-libs:mesa-19.1.0_rc2:20190518-072847.log.bz2
$ vdpauinfo display: :0.0 screen: 0 API version: 1 Information string: G3DVL VDPAU Driver Shared Library version 1.0 Video surface: name width height types ------------------------------------------- 420 16384 16384 NV12 YV12 422 16384 16384 UYVY YUYV 444 16384 16384 Y8U8V8A8 V8U8Y8A8 Decoder capabilities: name level macbs width height ---------------------------------------------------- MPEG1 --- not supported --- MPEG2_SIMPLE 3 9216 2048 1152 MPEG2_MAIN 3 9216 2048 1152 H264_BASELINE 41 9216 2048 1152 H264_MAIN 41 9216 2048 1152 H264_HIGH 41 9216 2048 1152 VC1_SIMPLE 1 9216 2048 1152 VC1_MAIN 2 9216 2048 1152 VC1_ADVANCED 4 9216 2048 1152 MPEG4_PART2_SP --- not supported --- MPEG4_PART2_ASP --- not supported --- DIVX4_QMOBILE --- not supported --- DIVX4_MOBILE --- not supported --- DIVX4_HOME_THEATER --- not supported --- DIVX4_HD_1080P --- not supported --- DIVX5_QMOBILE --- not supported --- DIVX5_MOBILE --- not supported --- DIVX5_HOME_THEATER --- not supported --- DIVX5_HD_1080P --- not supported --- H264_CONSTRAINED_BASELINE 0 9216 2048 1152 H264_EXTENDED --- not supported --- H264_PROGRESSIVE_HIGH --- not supported --- H264_CONSTRAINED_HIGH --- not supported --- H264_HIGH_444_PREDICTIVE --- not supported --- HEVC_MAIN --- not supported --- HEVC_MAIN_10 --- not supported --- HEVC_MAIN_STILL --- not supported --- HEVC_MAIN_12 --- not supported --- HEVC_MAIN_444 --- not supported --- Output surface: name width height nat types ---------------------------------------------------- B8G8R8A8 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 R8G8B8A8 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 R10G10B10A2 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 B10G10R10A2 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 Bitmap surface: name width height ------------------------------ B8G8R8A8 16384 16384 R8G8B8A8 16384 16384 R10G10B10A2 16384 16384 B10G10R10A2 16384 16384 A8 16384 16384 Video mixer: feature name sup ------------------------------------ DEINTERLACE_TEMPORAL y DEINTERLACE_TEMPORAL_SPATIAL - INVERSE_TELECINE - NOISE_REDUCTION y SHARPNESS y LUMA_KEY y HIGH QUALITY SCALING - L1 y HIGH QUALITY SCALING - L2 - HIGH QUALITY SCALING - L3 - HIGH QUALITY SCALING - L4 - HIGH QUALITY SCALING - L5 - HIGH QUALITY SCALING - L6 - HIGH QUALITY SCALING - L7 - HIGH QUALITY SCALING - L8 - HIGH QUALITY SCALING - L9 - parameter name sup min max ----------------------------------------------------- VIDEO_SURFACE_WIDTH y 48 2048 VIDEO_SURFACE_HEIGHT y 48 1152 CHROMA_TYPE y LAYERS y 0 4 attribute name sup min max ----------------------------------------------------- BACKGROUND_COLOR y CSC_MATRIX y NOISE_REDUCTION_LEVEL y 0.00 1.00 SHARPNESS_LEVEL y -1.00 1.00 LUMA_KEY_MIN_LUMA y LUMA_KEY_MAX_LUMA y Looks a bit strange, unsupported DIV opcode? Does the same happen if you use -vo opengl rather than vdpau? Or if you use --hwdec vaapi with either -vo=opengl or -vo=vaapi? (In reply to Chí-Thanh Christopher Nguyễn from comment #3) > Looks a bit strange, unsupported DIV opcode? I have no experience to tell :-P. > Does the same happen if you use -vo opengl rather than vdpau? Or if you use > --hwdec vaapi with either -vo=opengl or -vo=vaapi? '-vo opengl' works, with any value of hwdec. '-vo vaapi' fails the same as VDPAU. What is the GPU you're running? I've tried to reproduce it on latest ~amd64 system and it seems to work for me just fine. I've fetched a x264 1080p sample and it does indeed work here with VDPAU. I am running a Polaris chip (rx580 to be exact). media-libs/mesa-19.1.0_rc5 media-video/mpv-0.29.1-r1 x11-libs/libva-vdpau-driver-0.7.4-r4 x11-libs/libvdpau-1.2 (In reply to Piotr Karbowski from comment #5) > What is the GPU you're running? > Cedar (5450) Same problem. Cedar Same problem with an APU OpenGL vendor string: X.Org OpenGL renderer string: AMD ARUBA (DRM 2.50.0 / 5.1.7-radeon, LLVM 8.0.0) OpenGL core profile version string: 4.3 (Core Profile) Mesa 19.1.0 OpenGL core profile shading language version string: 4.30 tested with vlc and vdpau Does your system with APU complain with R600 in logs too? And which of APU is it? (In reply to Piotr Karbowski from comment #9) > Does your system with APU complain with R600 in logs too? yes And which of APU > is it? processor : 3 vendor_id : AuthenticAMD cpu family : 21 model : 16 model name : AMD A10-5800K APU with Radeon(tm) HD Graphics with vlc I get avcodec decoder: Using G3DVL VDPAU Driver Shared Library version 1.0 for hardware decoding EE ../mesa-19.1.0/src/gallium/drivers/r600/r600_shader.c:4289 tgsi_unsupported - DIV tgsi opcode unsupported EE ../mesa-19.1.0/src/gallium/drivers/r600/r600_shader.c:185 r600_pipe_shader_create - translation from TGSI failed ! EE ../mesa-19.1.0/src/gallium/drivers/r600/r600_state_common.c:878 r600_shader_select - Failed to build shader variant (type=5) -22 EE ../mesa-19.1.0/src/gallium/drivers/r600/r600_shader.c:4289 tgsi_unsupported - DIV tgsi opcode unsupported EE ../mesa-19.1.0/src/gallium/drivers/r600/r600_shader.c:185 r600_pipe_shader_create - translation from TGSI failed ! EE ../mesa-19.1.0/src/gallium/drivers/r600/r600_state_common.c:878 r600_shader_select - Failed to build shader variant (type=5) -22 Segmentation fault (core dumped) dmesg shows [329739.315877] vlc[19162]: segfault at 1eb7 ip 00007fe945d44268 sp 00007fe924106420 error 4 in r600_dri.so[7fe945ad8000+ed3000] [329739.315888] Code: 85 08 ff ff ff 48 8d 88 68 22 00 00 48 8b 85 08 ff ff ff ba 01 00 00 00 48 89 ce 48 89 c7 e8 db e0 ff ff 48 8b 85 28 ff ff ff <0f> b6 80 b7 1e 00 00 0f b6 c0 66 85 c0 75 16 48 8b 85 28 ff ff ff it is r600 related (In reply to Piotr Karbowski from comment #9) I forgot to mention, x11-libs/libva-vdpau-driver-0.7.4-r4 x11-libs/libvdpau-1.2 x11-misc/vdpauinfo-1.0 media-video/vlc-3.0.7 media-libs/mesa-19.1.0 (In reply to Piotr Karbowski from comment #9) (gdb) bt #0 0x00007fe945d44268 in compute_emit_cs () from /usr/lib64/dri/r600_dri.so #1 0x00007fe945d44b93 in evergreen_launch_grid () from /usr/lib64/dri/r600_dri.so #2 0x00007fe91d5520f1 in cs_launch () from /usr/lib64/vdpau/libvdpau_r600.so.1 #3 0x00007fe91d55260a in draw_layers () from /usr/lib64/vdpau/libvdpau_r600.so.1 #4 0x00007fe91d5529e6 in vl_compositor_cs_render () from /usr/lib64/vdpau/libvdpau_r600.so.1 #5 0x00007fe91d54d73c in vl_compositor_render () from /usr/lib64/vdpau/libvdpau_r600.so.1 #6 0x00007fe91d53c318 in vlVdpVideoMixerRender () from /usr/lib64/vdpau/libvdpau_r600.so.1 #7 0x00007fe924124c58 in vdp_video_mixer_render () from /usr/lib64/vlc/libvlc_vdpau.so.0 #8 0x00007fe9242cd206 in Render () from /usr/lib64/vlc/plugins/vdpau/libvdpau_chroma_plugin.so #9 0x00007fe9242cd431 in VideoRender () from /usr/lib64/vlc/plugins/vdpau/libvdpau_chroma_plugin.so #10 0x00007fe963ad6815 in FilterChainVideoFilter () from /usr/lib64/libvlccore.so.9 #11 0x00007fe963ad68fb in filter_chain_VideoFilter () from /usr/lib64/libvlccore.so.9 #12 0x00007fe963a99945 in vout_FilterDisplay () from /usr/lib64/libvlccore.so.9 --Type <RET> for more, q to quit, c to continue without paging-- #13 0x00007fe963aa0551 in ThreadDisplayRenderPicture () from /usr/lib64/libvlccore.so.9 #14 0x00007fe963aa0a45 in ThreadDisplayPicture () from /usr/lib64/libvlccore.so.9 #15 0x00007fe963aa20be in Thread.lto_priv.1 () from /usr/lib64/libvlccore.so.9 #16 0x00007fe9637d03a7 in start_thread () from /lib64/libpthread.so.0 #17 0x00007fe9636f376f in clone () from /lib64/libc.so.6 Just to save everyone some time for testing: it's still broken in 19.1.1. I have no R600 hardware to test this on, but we know last working and first broken release -- would be nice for someone who can reproduce it to git bisect it. Should be easy to automate testing it, as in, replacing libraries and running mpv, then checking for error. (In reply to Piotr Karbowski from comment #14) > I have no R600 hardware to test this on, but we know last working and first > broken release -- would be nice for someone who can reproduce it to git > bisect it. Should be easy to automate testing it, as in, replacing libraries > and running mpv, then checking for error. No need. See $URL. There's an outstanding merge request that contains a proposed fix. People could test the patch if they are inclined. confirmed with a Caicos/r600 gpu. I've masked it since mesa 19.1 appeard in ~amd64 Mesa bug says that the fix is in the 19.1.2 version that has just been released. (In reply to Maciej S. Szmigiero from comment #17) > Mesa bug says that the fix is in the 19.1.2 version that has just been > released. It's not yet in portage but I tested locally and can confirm that vdpau does indeed work again. \o/ Now fixed with 19.1.2. Thanks guys! |