AMD va-api outputs corrupt encoding
System information
I don't have a replication system, but reported drivers/hardware from users are
17:39:32.061: Loading up OpenGL on adapter AMD AMD Radeon RX 5700 XT (navi10, LLVM 14.0.5, DRM 3.42, 5.15.0-40-lowlatency)
17:39:32.061: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 22.1.2 - kisak-mesa PPA, shading language 4.60
11:00:24.813: Loading up OpenGL on adapter AMD AMD Radeon RX 5700 XT (NAVI10, DRM 3.42.0, 5.15.32-gentoo-r1-piemanBuild, LLVM 13.0.1)
11:00:24.813: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 21.3.7, shading language 4.60
Describe the issue
Encodings produced by OBS via VA-API are corrupted with some frames in the encoding being a solid color, often pure red/green/blue or pure red+blue.
Sample encodings provided.
Users reported replicating this corruption with ffmpeg cli as well ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'format=nv12,hwupload' -c:v h264_vaapi test.mp4
Regression
The first report was sometime in May.
Screenshots/video files (if applicable)
Flickering_Example_Game_-_Splitgate-1
Any extra information would be greatly appreciated
It seems it has reached users of ubuntu 22, though it was first reported by a gentoo user.