Bug#1059782: mesa-vdpau-drivers: Upgrade to 23.3.* breaks video rendering in tkinter

2024-01-31 Thread jim_p
Package: mesa-vdpau-drivers
Followup-For: Bug #1059782
X-Debbugs-Cc: pitsior...@outlook.com

I know that mesa 24 will fix the issue, and I know it has been packaged in
experimental, since I first noticed my videos showing black with vaapi, 1+ week
ago.
Sadly, mesa is a core component of the os, like systemd, policykit, or the
kernel, so I won't risk installing a version that is has not even reached
stable from upstream! This is one of the reasons I am on testing and not on
unstable.

Having said that, I noticed that mesa 24 was released as stable today, so I
will wait until it reaches unstable at the very least before updating it.

Last but not least, I will try and contact any arch user who was affected by
the same issue so as to know if their patch actually solved it.


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-5-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mesa-vdpau-drivers depends on:
ii  libc62.37-14
ii  libdrm-amdgpu1   2.4.120-1
ii  libdrm-nouveau2  2.4.120-1
ii  libdrm-radeon1   2.4.120-1
ii  libdrm2  2.4.120-1
ii  libelf1  0.190-1+b1
ii  libexpat12.5.0-2+b2
ii  libgcc-s113.2.0-10
ii  libllvm171:17.0.6-5
ii  libstdc++6   13.2.0-10
ii  libvdpau11.5-2
ii  libx11-xcb1  2:1.8.7-1
ii  libxcb-dri2-01.15-1
ii  libxcb-dri3-01.15-1
ii  libxcb-present0  1.15-1
ii  libxcb-sync1 1.15-1
ii  libxcb-xfixes0   1.15-1
ii  libxcb1  1.15-1
ii  libxshmfence11.3-1
ii  libzstd1 1.5.5+dfsg2-2
ii  zlib1g   1:1.3.dfsg-3+b1

mesa-vdpau-drivers recommends no packages.

mesa-vdpau-drivers suggests no packages.



Bug#1059782: mesa-vdpau-drivers: Upgrade to 23.3.* breaks video rendering in tkinter

2024-01-31 Thread Fabio Pedretti
You can try installing version 24.0.0~rc3-1 in experimental, which
should have this issue fixed.



Bug#1059782: mesa-vdpau-drivers: Upgrade to 23.3.* breaks video rendering in tkinter

2024-01-31 Thread jim_p
Package: mesa-vdpau-drivers
Followup-For: Bug #1059782
X-Debbugs-Cc: pitsior...@outlook.com

Sadly, I do not have a gitlab account. But I think that the issue is discussed
here
https://gitlab.freedesktop.org/mesa/mesa/-/issues/10468

Below is the output of vaapi-info. Please notice the first lines which match
mpv's log. This is what vainfo outputs since ever, there is nothing wrong with
it (= vaapi), e.g. a missing file, it works (worked) fine.

$ vainfo
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/r600_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.20 (libva 2.12.0)
vainfo: Driver version: Mesa Gallium driver 23.3.4-1 for AMD CAICOS (DRM 2.50.0
/ 6.5.0-5-amd64, LLVM 17.0.6)
vainfo: Supported profile and entrypoints
  VAProfileMPEG2Simple: VAEntrypointVLD
  VAProfileMPEG2Main  : VAEntrypointVLD
  VAProfileVC1Simple  : VAEntrypointVLD
  VAProfileVC1Main: VAEntrypointVLD
  VAProfileVC1Advanced: VAEntrypointVLD
  VAProfileH264ConstrainedBaseline: VAEntrypointVLD
  VAProfileH264Main   : VAEntrypointVLD
  VAProfileH264High   : VAEntrypointVLD
  VAProfileH264High10 : VAEntrypointVLD
  VAProfileNone   : VAEntrypointVideoProc

Anyway, if the bug reports are correct, this only applies to h264 as it seems
and I have no h265 (or even mpeg2) files or streams to test!
I just tried these, which are h265 and they played fine... but my card does not
do vaapi for h265, so I assume mpv just plays them with xv.

https://www.libde265.org/downloads-videos/


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-5-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mesa-vdpau-drivers depends on:
ii  libc62.37-14
ii  libdrm-amdgpu1   2.4.120-1
ii  libdrm-nouveau2  2.4.120-1
ii  libdrm-radeon1   2.4.120-1
ii  libdrm2  2.4.120-1
ii  libelf1  0.190-1+b1
ii  libexpat12.5.0-2+b2
ii  libgcc-s113.2.0-10
ii  libllvm171:17.0.6-5
ii  libstdc++6   13.2.0-10
ii  libvdpau11.5-2
ii  libx11-xcb1  2:1.8.7-1
ii  libxcb-dri2-01.15-1
ii  libxcb-dri3-01.15-1
ii  libxcb-present0  1.15-1
ii  libxcb-sync1 1.15-1
ii  libxcb-xfixes0   1.15-1
ii  libxcb1  1.15-1
ii  libxshmfence11.3-1
ii  libzstd1 1.5.5+dfsg2-2
ii  zlib1g   1:1.3.dfsg-3+b1

mesa-vdpau-drivers recommends no packages.

mesa-vdpau-drivers suggests no packages.



Bug#1059782: mesa-vdpau-drivers: Upgrade to 23.3.* breaks video rendering in tkinter

2024-01-31 Thread Fabio Pedretti
Hi jim_p, if you are referring to:
https://gitlab.archlinux.org/archlinux/packaging/packages/mesa/-/commit/15e037dba159f893360d642e4efa13e09682b080
I don't think is related to this issue.
I suggest to report it here: https://gitlab.freedesktop.org/mesa/mesa/-/issues
In your log this looks relevant:
[   0.318][v][vo/gpu/vaapi] using EGL dmabuf interop
[   0.319][v][vo/gpu/vaapi] Trying to open a x11 VA display...
[   0.319][d][vo/gpu/vaapi/vaapi] libva: VA-API version 1.20.0
[   0.319][d][vo/gpu/vaapi/vaapi] libva: Trying to open
/usr/lib/x86_64-linux-gnu/dri/r600_drv_video.so
[   0.328][d][vo/gpu/vaapi/vaapi] libva: Found init function __vaDriverInit_1_20
[   0.340][d][vo/gpu/vaapi/vaapi] libva: va_openDriver() returns 0
[   0.341][v][vo/gpu/vaapi/vaapi] Initialized VAAPI: version 1.20
[   0.341][d][ffmpeg] AVHWDeviceContext: VAAPI driver: Mesa Gallium
driver 23.3.4-1 for AMD CAICOS (DRM 2.50.0 / 6.5.0-5-amd64, LLVM
17.0.6).
[   0.341][d][ffmpeg] AVHWDeviceContext: Driver not found in known
nonstandard list, using standard behaviour.
[   0.341][v][vo/gpu/vaapi] Going to probe surface formats (may log
bogus errors)...
[   0.344][d][vo/gpu/vaapi] Failed to create mapper
[   0.344][d][vo/gpu/vaapi] Unsupported format: yuyv422
[   0.345][d][vo/gpu/vaapi] Failed to create mapper
[   0.345][d][vo/gpu/vaapi] Unsupported format: uyvy422
[   0.346][d][vo/gpu/vaapi] vaExportSurfaceHandle() failed (an
unsupported memory type was supplied)
[   0.346][d][vo/gpu/vaapi] Unsupported format: argb
[   0.346][d][vo/gpu/vaapi] Supported formats:
[   0.346][d][vo/gpu/vaapi]  nv12
[   0.346][d][vo/gpu/vaapi]  p010
[   0.346][d][vo/gpu/vaapi]  yuv420p
[   0.346][d][vo/gpu/vaapi]  gray
[   0.346][d][vo/gpu/vaapi]  yuv444p
[   0.346][d][vo/gpu/vaapi]  bgra
[   0.346][d][vo/gpu/vaapi]  rgba
[   0.346][d][vo/gpu/vaapi]  bgr0
[   0.346][d][vo/gpu/vaapi]  rgb0
[   0.346][v][vo/gpu/vaapi] Done probing surface formats.



Bug#1059782: mesa-vdpau-drivers: Upgrade to 23.3.* breaks video rendering in tkinter

2024-01-31 Thread jim_p
Package: mesa-vdpau-drivers
Followup-For: Bug #1059782
X-Debbugs-Cc: pitsior...@outlook.com

So, 23.3.4 reached testing today and the problem is still there. As expected,
it is not an upstream issue, so can the maintainer have a look at the
forementioned patch and correct the package?

If it helps, here is a verbose mpv log playing a local file and showing nothing
but black
https://paste.debian.net/hidden/55cf4d0f/


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-5-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mesa-vdpau-drivers depends on:
ii  libc62.37-14
ii  libdrm-amdgpu1   2.4.120-1
ii  libdrm-nouveau2  2.4.120-1
ii  libdrm-radeon1   2.4.120-1
ii  libdrm2  2.4.120-1
ii  libelf1  0.190-1+b1
ii  libexpat12.5.0-2+b2
ii  libgcc-s113.2.0-10
ii  libllvm171:17.0.6-5
ii  libstdc++6   13.2.0-10
ii  libvdpau11.5-2
ii  libx11-xcb1  2:1.8.7-1
ii  libxcb-dri2-01.15-1
ii  libxcb-dri3-01.15-1
ii  libxcb-present0  1.15-1
ii  libxcb-sync1 1.15-1
ii  libxcb-xfixes0   1.15-1
ii  libxcb1  1.15-1
ii  libxshmfence11.3-1
ii  libzstd1 1.5.5+dfsg2-2
ii  zlib1g   1:1.3.dfsg-3+b1

mesa-vdpau-drivers recommends no packages.

mesa-vdpau-drivers suggests no packages.



Bug#1059782: mesa-vdpau-drivers: Upgrade to 23.3.* breaks video rendering in tkinter

2024-01-29 Thread jim_p
Package: mesa-vdpau-drivers
Followup-For: Bug #1059782
X-Debbugs-Cc: pitsior...@outlook.com

@Vasyl Gello

Shouldn't this be opened under mesa-VA-drivers as a new bug report with the
same or greater severity?
I am on a 6450, I am using radeon and I have lost vaapi on all my players since
23.3.x moved to testing. There isn't a single bug report for this and all I
have found is a thread on debian forums. I commented on it, but there are no
further replies, not even if 23.3.4 fixes it, which reached unstable a couple
of days ago. So right now I am waiting for it to reach testing by the end of
the week before posting again.

The only patch that may fix it is this one I found on arch
https://gitlab.archlinux.org/archlinux/packaging/packages/mesa/-/commit/15e037dba159f893360d642e4efa13e09682b080


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-5-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mesa-vdpau-drivers depends on:
ii  libc62.37-14
ii  libdrm-amdgpu1   2.4.120-1
ii  libdrm-nouveau2  2.4.120-1
ii  libdrm-radeon1   2.4.120-1
ii  libdrm2  2.4.120-1
ii  libelf1  0.190-1+b1
ii  libexpat12.5.0-2+b2
ii  libgcc-s113.2.0-10
ii  libllvm171:17.0.6-5
ii  libstdc++6   13.2.0-10
ii  libvdpau11.5-2
ii  libx11-xcb1  2:1.8.7-1
ii  libxcb-dri2-01.15-1
ii  libxcb-dri3-01.15-1
ii  libxcb-present0  1.15-1
ii  libxcb-sync1 1.15-1
ii  libxcb-xfixes0   1.15-1
ii  libxcb1  1.15-1
ii  libxshmfence11.3-1
ii  libzstd1 1.5.5+dfsg2-2
ii  zlib1g   1:1.3.dfsg-3+b1

mesa-vdpau-drivers recommends no packages.

mesa-vdpau-drivers suggests no packages.



Bug#1059782: mesa-vdpau-drivers: Upgrade to 23.3.* breaks video rendering in tkinter

2024-01-24 Thread Vasyl Gello
Control: retitle -1: Upgrade to 23.3.* breaks video rendering
Control: severity -1 serious

Dear colleagues,

Yesterday the update reached testing and it completely destroys VA-API 
rendering with Kodi.
Any video file played with VA-API hardware acceleration results in black screen 
with no additional
error messages on Kodi log. Reverting the mesa packages to 23.2.1-1 (and 
installing back libllvm16)
restores the correct behavior.

I am investigating the root cause of the regression and will report it
once I find one.

-- 
Vasyl Gello
==
Certified SolidWorks Expert

Mob.:+380 (98) 465 66 77

E-Mail: vasek.ge...@gmail.com
==
호랑이는 죽어서 가죽을 남기고 사람은 죽어서 이름을 남긴다

Bug#1059782: mesa-vdpau-drivers: Upgrade to 23.3.* breaks video rendering in tkinter

2023-12-31 Thread Hugh McMaster
Package: mesa-vdpau-drivers
Version: 23.3.1-4
Severity: important

Dear Maintainer,

Upgrading from 23.2.1-1 to any 23.3.* version breaks video rendering in Python
tkinter-based applications.

I'm embedding a python-vlc media player in tkinter to play videos. Playback is
fine when using 23.2.1-1 or older. However, after upgrading to any 23.3.*
version, a black square is displayed where the video output should be. Playback
is occurring, as audio can be heard.

I tracked the issue to the mesa packages, but I don't know how to debug this
further or identify the binary package causing the issue.

I'll attach a simple test case. Please install python3-tk and python3-vlc.


-- Package-specific info:
glxinfo:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context, 
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, 
GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample, 
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, 
GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, 
GLX_EXT_get_drawable_type, GLX_EXT_libglvnd, GLX_EXT_no_config_context, 
GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
GLX_MESA_copy_sub_buffer, GLX_OML_swap_method, GLX_SGIS_multisample, 
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, 
GLX_SGI_make_current_read
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context, 
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, 
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, 
GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample, 
GLX_ATI_pixel_format_float, GLX_EXT_buffer_age, 
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, 
GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, 
GLX_EXT_import_context, GLX_EXT_no_config_context, GLX_EXT_swap_control, 
GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap, 
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_INTEL_swap_event, 
GLX_MESA_copy_sub_buffer, GLX_MESA_gl_interop, GLX_MESA_query_renderer, 
GLX_MESA_swap_control, GLX_NV_float_buffer, GLX_OML_sync_control, 
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
GLX_SGIX_visual_select_group, GLX_SGI_make_current_read, 
GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.4
GLX extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context, 
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, 
GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, 
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age, 
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, 
GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, 
GLX_EXT_no_config_context, GLX_EXT_swap_control, 
GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap, 
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
GLX_MESA_gl_interop, GLX_MESA_query_renderer, GLX_MESA_swap_control, 
GLX_OML_sync_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_SGI_make_current_read, 
GLX_SGI_video_sync
Extended renderer info (GLX_MESA_query_renderer):
Vendor: VMware, Inc. (0x15ad)
Device: SVGA3D; build: RELEASE;  LLVM; (0x405)
Version: 23.3.1
Accelerated: no
Video memory: 1MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.1
Max compat profile version: 4.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: SVGA3D; build: RELEASE;  LLVM;
OpenGL core profile version string: 4.1 (Core Profile) Mesa 23.3.1-4
OpenGL core profile shading language version string: 4.10
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
GL_AMD_conservative_depth, GL_AMD_draw_buffers_blend, 
GL_AMD_multi_draw_indirect, GL_AMD_shader_trinary_minmax, 
GL_AMD_texture_texture4, GL_ANGLE_texture_compression_dxt3, 
GL_ANGLE_texture_compression_dxt5, GL_ARB_ES2_compatibility, 
GL_ARB_ES3_compatibility, GL_ARB_arrays_of_arrays, GL_ARB_base_instance, 
GL_ARB_blend_func_extended, GL_ARB_buffer_storage, 
GL_ARB_clear_buffer_object, GL_ARB_clear_texture, 
GL_ARB_compressed_texture_pixel_storage, GL_ARB_conservative_depth, 
GL_ARB_copy_buffer, GL_ARB_copy_image, GL_ARB_debug_output, 
GL_ARB_depth_buffer_float, GL_ARB_depth_clamp, GL_ARB_direct_state_access, 
GL_ARB_draw_buffers, GL_ARB_draw_buffers_blend, 
GL_ARB_draw_elements_base_vertex,