radeonsi: Creating EGLImages for some YUV formats unexpectedly fails
System information
System: Host: ryzen Kernel: 5.16.0-0.rc7.20211231git4f3d93c6eaff.52.fc36.x86_64 x86_64 bits: 64 compiler: gcc
v: 2.37-22.fc36 Desktop: KDE Plasma 5.23.4 tk: Qt 5.15.2 wm: kwin_wayland dm: GDM, SDDM
Distro: Fedora release 36 (Rawhide)
CPU: Info: 64-Core (8-Die) model: AMD Ryzen Threadripper 3990X bits: 64 type: MT MCP MCM arch: Zen 2 rev: 0 cache:
L1: 4 MiB L2: 32 MiB L3: 256 MiB
flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 742408
Speed: 2200 MHz min/max: 2200/2900 MHz boost: enabled Core speeds (MHz): 1: 2200 2: 2199 3: 3594 4: 2200 5: 2199
6: 2198 7: 2199 8: 2197 9: 2200 10: 2198 11: 2200 12: 2056 13: 2057 14: 2055 15: 2057 16: 3598 17: 2200 18: 2198
19: 2197 20: 2197 21: 2200 22: 2201 23: 2200 24: 2198 25: 2199 26: 2198 27: 2198 28: 2199 29: 2199 30: 2197
31: 2200 32: 2198 33: 2192 34: 2197 35: 2200 36: 2200 37: 1865 38: 1867 39: 2804 40: 2799 41: 2198 42: 2062
43: 2057 44: 2050 45: 3601 46: 3595 47: 2057 48: 2056 49: 2058 50: 2198 51: 2199 52: 2200 53: 2197 54: 2201
55: 2199 56: 2200 57: 2196 58: 2200 59: 2199 60: 2198 61: 2200 62: 2198 63: 3607 64: 2200 65: 2199 66: 2199
67: 2198 68: 2055 69: 2055 70: 2056 71: 3595 72: 2198 73: 2199 74: 2055 75: 2199 76: 2198 77: 2197 78: 2198
79: 2200 80: 2197 81: 1867 82: 1866 83: 2799 84: 1867 85: 2057 86: 2198 87: 2198 88: 2199 89: 2198 90: 2206
91: 2199 92: 2198 93: 2198 94: 3600 95: 2056 96: 2057 97: 2069 98: 2056 99: 2200 100: 2200 101: 2200 102: 2199
103: 2200 104: 2200 105: 2199 106: 2198 107: 2196 108: 2199 109: 2201 110: 2200 111: 2199 112: 2201 113: 2196
114: 2199 115: 2203 116: 3597 117: 2055 118: 2199 119: 2055 120: 2055 121: 2197 122: 2203 123: 2198 124: 2199
125: 2199 126: 2198 127: 2199 128: 2197
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
vendor: Micro-Star MSI driver: amdgpu v: kernel bus-ID: 04:00.0 chip-ID: 1002:731f
Device-2: Sunplus Innovation FULL HD webcam type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-2.2:5
chip-ID: 1bcf:2284
Display: wayland server: X.Org 1.21.1.4 compositor: kwin_wayland driver: loaded: amdgpu,ati
unloaded: fbdev,modesetting,radeon,vesa resolution: 1: 2560x1440~60Hz 2: 2560x1440~60Hz s-dpi: 96
OpenGL:
renderer: AMD Radeon RX 5700 XT (NAVI10 DRM 3.44.0 5.16.0-0.rc7.20211231git4f3d93c6eaff.52.fc36.x86_64 LLVM 13.0.0)
v: 4.6 Mesa 21.3.3 direct render: Yes
Note that this also repros on GNOME/Mutter, pretty sure it's not related to DE/Compositor.
Describe the issue
In my GPU, this code fails to successfully create an EGLImage. I did some digging (here) and found that this check fails.
The Intel driver with the same attributes seems to work just fine. It might be that the driver doesn't handle that correctly and we just need to fall back to software decode, but it was suggested that I file it here just in case.
Regression
I don't think this is a regression.
Any extra information would be greatly appreciated
To reproduce, running Firefox with VAAPI enabled like this on a Wayland session (though probably also works on X11+EGL):
$ pip3 install --user mozregression # To download a known-affected build
$ MOZ_ENABLE_WAYLAND=1 mozregression --launch 2022-01-10 -a https://bug1722662.bmoattachments.org/attachment.cgi\?id\=9233439 --pref media.ffmpeg.vaapi.enabled:true
If you need any extra info I'm happy to help of course.