tools/root_sig_contract.py says its packing mirrors
runtime/src/root_signature.{h,cpp}, but it still refused a constant
parameter with count 0, so after this branch it rejected a signature the
runtime accepts. Accept count >= 0; a zero count adds no dwords and its
neighbours pack as if it were absent, in both the s0 and the console
layout. Raised in review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/boot.md: main added LEONIDA_WRITE_DIR / LEONIDA_SAVE_DIR to the
--overlay bullet and a new "Under Wine on Linux" section; keep both and
the T: paragraph of this branch after main's sentences.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/run_gpu_tests.py: main added cs_w32_wrxchg2_ext and
cs_w32_wrxchg2st64 to the same name list; keep main's list and add
cs_w64x_partial_swizzle to it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On GPUs whose push constant block is 128 bytes (AMD iGPUs) every
rdna2spirv.py translation fails with "need 144 push constant bytes"
unless --pc-tail-ubo moves the tail to a UBO, and vk_compute_test then
needs LEONIDA_PC_TAIL_UBO=1 to bind the same layout -- the same pairing
lds_fuzz.py, valu_fuzz.py and image_fuzz.py already implement. This
adds the flag (also enabled by LEONIDA_PC_TAIL_UBO=1) and forwards it
to both the translator and the harness, including the --minimize path.
AI-assisted. Tested: tests/test_crosslane_fuzz.py (76 tests), and a
GPU spot-check on the AMD iGPU (Vulkan, validation on): 8 programs,
wave32 native + wave64 emulate, all match with no harness errors.
Co-Authored-By: Devin <noreply@cognition.ai>
Address CI-MAIN-SIGNAL review cost concerns with one staggered daily CI and Runtime snapshot, using their existing schedule-specific run groups. Keep push/PR cancellation and coalescing unchanged; do not expand every merge into full runner work. Synthetic schedule/expression controls included. AI-assisted.
main now resets the missing lanes' exchange slots with OpAtomicStore
(19e42d6de) instead of OpStore, so the test's poison substitution matched
nothing and both partial-wave cases failed on their own guard. Match the
atomic store's value operand instead. Without x_lane_word the 40-thread
case still fails, so the test keeps covering the fix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Maintainer fixes on top of the author's rehydration, carried over from the
reviewed branch onto the rewritten head:
- Scratch: each element of a batch gets a region of its own in one buffer
per call, at D3D12's acceleration-structure alignment, and the command list
holds that buffer until its next Reset (rt::d3d12::hold_until_reset). Before,
every element and every list shared one builder-wide buffer with no barrier
between the builds, and growing it released a buffer that builds already
recorded could still use.
- Fresh builds: a rehydrate always builds from geometry. PERFORM_UPDATE is
cleared together with SourceAccelerationStructureData, so the layer never
refits from the dehydrated stream's bytes.
- The leaf frame compressionParams gives is described as not applied yet,
which is what the code does.
- The test reads back rehydrated builds made without scratch
(ScratchAccelerationStructureData = 0), the shape the title uses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in scripts/run_gpu_tests.py: the dump-test name list gained
cs_w64x_cmp_sdst on main and cs_w64x_partial_swizzle here; both are kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Fix log_once call signature at line 268 (passes flag, text without format args).
- Do not copy source_data into SourceAccelerationStructureData to avoid unwanted refit
on update paths (d3d12_vulkan_device.cpp:2639).
- Allocate and supply scratch buffer via builder_ensure_scratch when the title passes
ScratchAccelerationStructureData = 0 (docs/xdxr.md §6), avoiding command list poisoning.
- Retain the leaf-frame note (compressionParams, docs/bvh.md §4a) in comments and docs.
- Remove stale deserialize references in test comments and update test coverage.
AI-assisted (Claude Code, Claude Opus 5.5).
Addresses review feedback on #1759 from @aslan2142 and @Tyrannys:
- RehydrateRaytracingAccelerationStructureBatched2X now rebuilds structures
exclusively from geometry (docs/bvh.md §4a).
- Offline console dehydrated streams cannot be directly deserialized by
PC D3D12/Vulkan drivers (docs/bvh.md §4/§4a). When source_data is present
without geometry descs, the shim logs once and refuses with E_NOTIMPL.
- Documented in docs/xdxr.md that the 4th parameter (const UINT64* source_data)
is a hypothesis denoting offline console stream pointers.
- Empty structures (NumDescs == 0 without source) are logged once and skipped.
- Updated runtime/test/xbox_bvh_builder_test.cpp and tests/test_xbox_bvh_builder_rehydrate.py
to verify refusal of source-only streams (E_NOTIMPL) and handling of empty structures.
AI-assisted (Claude Code, Claude Opus 5.5).