From kevincommits' finding (item 4) in #1608.
- d3d12_com.cpp:
- ResourceBarrier: a count with no array fails the list (check(false)) instead
of reading through null, as WriteBufferImmediate does.
- Barrier: the same for a null group array, and for a group with barriers but
no barrier array (the three array pointers are one union).
- CopyTiles: a bundle is refused for reserved buffers too, not only for sparse
images; no copy is allowed in a bundle.
- submitted_calibration: vkGetQueryPoolResults asks VK_QUERY_RESULT_WAIT_BIT,
so the read cannot answer VK_NOT_READY.
- process.cpp:
- run_entry passes the entry point itself to the game thread instead of a
pointer to its own stack: another thread can end the run before the game
thread first runs, and run_entry's frame is then gone.
- __getmainargs/__wgetmainargs expand wildcards when `expand` is nonzero
(mode 2, as _configure_*_argv does) and fail on a null argc or argv.
Tests: d3d12_com_test (null arrays fail Close; counts of 0 and valid calls
do not), d3d12_buffer_tiles_test (CopyTiles of a reserved buffer in a bundle
fails Close), process_cmdline_test (expand 0 and 1, null argc/argv).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>