upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_queue_query_sync_test.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-29 00:12:35 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-29 06:34:53 -0500
commitb10cae3b997eac64a1f0bdbfd4393d03022409cd (patch)
tree5435addedb52a332a3d49d4ccc620870b322cc43 /runtime/test/vk_queue_query_sync_test.cpp
parentd88b2deea2159c177630f05c944e2ce7bd168bea (diff)
rendering(r5c): guard V# s_buffer_load and buffer_* ops on SQ_RSRC_BUF.TYPE == 0
GFX10.3 V# buffer descriptors require w[3][31:30] == 0 (SQ_RSRC_BUF.TYPE == 0); descriptors with w[3][31:30] != 0 are image T#s or non-buffer resources. Previously Gen.scalar_load and Gen.buffer_address ignored w[3][31:30], so an async-compute s_buffer_load reading a console-heap slot overwritten with a T# computed a huge limit and dereferenced an unmapped VA (SQC data GPUVM fault at t ~184-203 s). Gate Gen.scalar_load (sbuf == True) and Gen.buffer_address on uint32(w[3]) < 0x40000000 (skipping the runtime check when w[3] is a known literal < 0x40000000 and forcing OOB when >= 0x40000000), document the rule in docs/design.md, and add 7 semantic + CPU ReadLog regression tests.
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions