turnip: Add debug option to find usage of stale reg values
MESA_VK_ABORT_ON_DEVICE_LOSS=1 \
TU_DEBUG_STALE_REGS_RANGE=0x00000c00,0x0000be01 \
TU_DEBUG_STALE_REGS_FLAGS=cmdbuf,renderpass \
./app
To pinpoint the reg causing a failure reducing regs range could be used for bisection. Some failures may be caused by multi-reg combination, in such case set 'inverse' flag which would change the meaning of reg range to "do not stomp these regs".
That's what I used to find stale regs fixed in !21148 (merged)
Edited by Danylo Piliaiev