Possible regression with kernel version 5.15.x using "global atomics"
Issue description
A feature called "global atomics" used by mpv for the --hdr-compute-peak option has regressed and causes performance issues. This feature works properly in 5.10.x, but does not in 5.15.x. It It is independent of vulkan or openGL, and independent of different openGL drivers (iris, i965) and only occurs on some Intel GPUs. Here's an issue on the mpv github repo where we reproduced the error and came to the conclusion that it's most likely a bug with the new kernel driver.
The regression is reproducable by running a kernel with version 5.15 with mpv installed and running an HDR video with hardware acceleration turned on. For example mpv --hwdec=vaapi video-with-hdr.mkv
dmesg with debug:dmesg.dump
GPU never hangs or crashes, to my knowledge, but I have included the error.bz2 just in case: error.bz2
Please ask me for more info if needed.
System info
Distrobution is Archlinux
$ uname -m
x86_64
$ uname -r
5.15.12-arch1-1.1
- Machine model: Dell XPS 15 7590
- Motherboard: 018W12
- Bios Version: A06