Commit Graph

4 Commits

Author SHA1 Message Date
MarcZX100 02005c86d2 fix(agc): detect narrow clock on RX 7800 XT 2026-10-09 22:04:49 +00:00
MarcZX100 aa17030a65 fix(agc): detect AMD proprietary narrow clock on RX 7900 XT 2026-10-09 22:02:13 +00:00
MarcZX100 0f1f5e721b fix(agc): detect narrow clock on tested AMD device 2026-10-09 22:02:13 +00:00
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