[BISECTED] ac/radeon commit somehow breaks nv12 surface from HEVC decode
System information
System:
Host: mrgency Kernel: 6.5.5-2-cachyos arch: x86_64 bits: 64 compiler: gcc
v: 13.2.1 Desktop: wayfire v: 0.8.0-06b41131 dm: SDDM Distro: Arch Linux
CPU:
Info: 8-core model: AMD Ryzen 7 2700 bits: 64 type: MT MCP arch: Zen+ rev: 2
cache: L1: 768 KiB L2: 4 MiB L3: 16 MiB
Speed (MHz): avg: 1549 high: 1550 min/max: 1550/3200 boost: enabled cores:
1: 1550 2: 1549 3: 1549 4: 1547 5: 1550 6: 1550 7: 1550 8: 1550 9: 1549
10: 1550 11: 1550 12: 1550 13: 1550 14: 1550 15: 1550 16: 1549
bogomips: 102394
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-4 pcie: speed: 8 GT/s
lanes: 16 ports: active: DP-1,DP-2 empty: DVI-D-1,HDMI-A-1,HDMI-A-2
bus-ID: 26:00.0 chip-ID: 1002:67df temp: 52.0 C
Device-2: Realtek RTL2838 DVB-T driver: usbfs type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 bus-ID: 3-1:2 chip-ID: 0bda:2838
Device-3: Logitech HD Webcam C615 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-2.4:5 chip-ID: 046d:082c
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.2.1
compositor: wayfire v: 0.8.0-06b41131 driver: X: loaded: modesetting
alternate: fbdev,intel,vesa dri: iris gpu: amdgpu d-rect: 3840x1080
display-ID: 1
Monitor-1: DP-1 pos: primary,left res: 1920x1080 size: N/A
Monitor-2: DP-2 pos: right res: 1920x1080 size: N/A
API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast
gbm: drv: kms_swrast surfaceless: drv: radeonsi wayland: drv: radeonsi x11:
drv: radeonsi
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd v: N/A glx-v: 1.4
direct-render: yes renderer: AMD Radeon RX 480 Graphics (polaris10 LLVM
16.0.6 DRM 3.54 6.5.5-2-cachyos) device-ID: 1002:67df
API: Vulkan v: 1.3.264 surfaces: xcb,xlib,wayland device: 0
type: discrete-gpu driver: mesa radv device-ID: 1002:67df device: 1
type: cpu driver: mesa llvmpipe device-ID: 10005:0000
Describe the issue
Basically, if I attempt to play the attached video file with mpv 0.36.0:
mpv --hwdec <video.mkv>
or
mpv --gpu-context=wayland --hwdec=vaapi <video.mkv>
It will fail to find a working nv12 surface for the video and produce a blue window.
Regression
Bisected to 905a00f1 which somehow doesn't look like it should affect a GFX8 card. It works exactly prior to this commit.
Log files as attachment
Working mpv output: capywork.txt
Broken mpv output: capybroken.txt
Screenshots/video files (if applicable)
The test video: Capybara__capy__capybaras__capybarak__capybara__capybaratiktok___7266006154516434177_