zink on radv, CS rejected / device lost, when exiting game "Factorio"
Factorio 1.1.30 from steam, but the issue can be also reproduced with a free demo with version 1.0 from https://factorio.com/get-download/1.0.0/demo/linux64 (tested)
zink-wip @ e9d66281
AMD Radeon R9 Fury X (FIJI, GFX8)
Linux 5.10.24-1
Just start the game, then in the main menu click "Exit". The game will crash. Easily reproducible on my end.
stdout and stderr:
...
888.457 Quitting: user-quit.
amdgpu: The CS has been rejected, see dmesg for more information (-2).
../../src/amd/vulkan/radv_device.c:4587: vkQueueSubmit() failed (VK_ERROR_DEVICE_LOST)
ZINK: vkQueueSubmit() failed
ZINK: device lost detected!
factorio: ../../src/util/simple_mtx.h:100: simple_mtx_lock: Assertion `c != _SIMPLE_MTX_INVALID_VALUE' failed.
...
dmesg:
[962785.729886] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -2!
The issue is the same on radv/aco and radv/llvm. Same error and fault.