AnyPS5/core/shader/recompiler/ControlFlow
nisbenz f025a9e506 fix(shader): read s_memtime from the device clock where RADV's subgroup clock is 20 bits
On GFX10.3 to GFX11.7, ACO lowers a subgroup-scope OpReadClockKHR to
s_getreg_b32 of SHADER_CYCLES, 20 bits zero-extended to 64, so s_memtime
wrapped every 2^20 cycles and went backwards. Detect those families from
the RADV device name and read the device clock there instead.

Fixes #985

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 14:42:40 +02:00
..
include/ControlFlow feat(shader): lower bounded PC-relative jump tables 2026-10-01 20:19:03 +10:00
src fix(shader): read s_memtime from the device clock where RADV's subgroup clock is 20 bits 2026-10-08 14:42:40 +02:00