upleb.uk

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

summaryrefslogtreecommitdiff
path: root/tests/test_run_gpu_tests_python_assembler.py
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 01:35:12 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 09:07:53 -0500
commit25621c61a08b07396543c3c77b08e2cb20567492 (patch)
tree35877ca525cf80dfe0ae83f45108c60651552fcd /tests/test_run_gpu_tests_python_assembler.py
parent11566729420056806c9187c5bbcfdde7a2575f2c (diff)
d3d12: LEONIDA_ADDRESS_GUARD=1 keeps the guarded shaders' page table current
The arena keeps [0x70000, 0x80000) for the guard header and its two sinks (in the null region when LEONIDA_ARENA_NULL_MB makes one). The page table is a host-visible buffer of its own; the header holds its address minus heap_base, the arena's size and the magic, written last. Before each submission, after the heap refresh, the windows and the geometry copies, update_address_guard makes the table say exactly what is backed outside the arena: gpu_backings, the geometry copies' blocks and the separate window buffers, the same set as the console heap pass's backed table but without its 100 ms limit. Only changed words are written, level 2 before level 1; a chunk keeps its block for good; past 62 blocks a chunk passes unchecked, which is logged. Refusals the shaders count are logged at most once a second with the last refused offset. src/address_guard.h holds the format and the table (address_guard_test); docs/d3d12_vulkan.md 3.3 "Address guard" the design, the cost per access and what is and is not covered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions