4 Commits

Author SHA1 Message Date
d411fe9b4a d3d12, process: null barrier arrays, CopyTiles in a bundle, calibration wait, entry thread and getmainargs expand
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>
2026-11-27 18:25:47 -06:00
c6384dfc81 d3d12_buffer_tiles: compare the layer with its own adapter's D3D12 (#6334)
Squash-merged after review of PR #6334 - d3d12_buffer_tiles: compare the layer with its own adapter's D3D12
2026-11-23 08:16:31 -06:00
5bcb17f9d5 d3d12_buffer_tiles: honour LEONIDA_HOST_ADAPTER and print the tile that differs (TEST-670) 2026-11-22 22:32:49 +02:00
b17531d021 Support sparse tile mappings for reserved D3D12 buffers
Depends on D3D-16 (PR #286).
2026-11-22 12:24:19 -03:00