Commit Graph

1 Commits

Author SHA1 Message Date
61a9adc2a8 vk_compute_test: VKC_HEAP_INIT seeds the heap from a file before the dispatch
A compute program that reads its inputs from memory (a root table, descriptors,
data) needs them in the heap before it runs; VKC_SGPRS only reaches s4..s31.
VKC_HEAP_INIT=<file> copies the file to Xbox VA 0 after the default fill. A file
larger than the buffer, or one that can't be read, is refused (exit 2).

cs_heap_init.asm loads four words the file put at 0x100 and stores them at 0;
check.py and run_gpu_tests.py write the file and check the words and the
file's zeros past them. First part of TEST-594 (the BVH builder's programs read
their root table from the heap).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:56:18 +00:00