Commit Graph

2915 Commits

Author SHA1 Message Date
0283d40cb4 runtime: build on MSVC without the Vulkan device; fix SHAPE context sizes
d3d12_xs_device.cpp called rt::d3d12::create_console_descriptor_heap
(slot 14, 3630610ca) without including d3d12_com.h, which exists only with
the Vulkan device (LEONIDA_VULKAN_DEVICE), so gta6rt did not compile
without Vulkan headers. The console path is now built with the Vulkan
device only, and when the helper refuses a host D3D12 device the PC call
makes the heap from the 16-byte desc, as before 3630610ca.

acphal.cpp: SHAPE_XMA_CONTEXT's bit fields fill five dwords and
SHAPE_PCM_CONTEXT's six, so with 10 and 1 reserved dwords the structs
were 60 and 28 bytes and the GDK-size asserts (64, 32) failed on MSVC.
Only the size is used (the stride of the title's context arrays), so the
reserved tails are 11 and 2 dwords.

Tested: gta6rt builds (VS 2022, RelWithDebInfo); gta6rt --dry-run and
--init on the Xbox Series 1.0.2.1 package map and initialise all five
modules; --run stops at the first unimplemented import,
xcrdapi.dll!DStorageGetFactory.

docs/port_status.md: Leonida is the base, VIctory the patch source.
port_ctl.py: shot --small writes a reduced copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:27:46 -05:00
a8b7ddbd50 Make main's tests green, part 2: docs drift, bvh_slot_check, find_hash_lookup (#10002)
Seven more test files that fail on main at d083a2c, after #9896:

- test_docs_repeated_lines: tests/semantic/README.md's command block is a fenced block, which the check skips;
  its indented form put two lines with the same 40-character opening three lines apart
- test_docs_repo_paths: docs/retail_boot_intel_host.md names #8554's frame-loop notes instead of a path that
  is not in the tree
- test_docs_env_vars: runtime/README.md documents LEONIDA_RNG_SEED (runtime/shims/bcrypt_rng.cpp)
- test_docs_design_rows: docs/README.md gets one row each for strand_grooms.md and ped_catalogues.md (two
  rows each were merged in), and design.md escapes the pipe in `prim_cnt << 12 \| vtx_cnt`
- test_docs_cli_flags: docs/testing.md passes llvm-mc through LLVM_MC, so `brew --prefix` is no longer read as
  a bench_wave64.py flag; pt-PT's quickstart points to the web checker that replaced tools/pc_checker.py
  (5125a01), as README.md does; the spirv-opt passes docs/embedded_shaders.md quotes join FOREIGN
- test_bvh_slot_check: bvh_match.model_geometries() yields six fields since the render bucket was added;
  unpack the two it needs
- test_joaat_agreement (find_hash_lookup's half): hash over the Latin-1 bytes like hashdict.joaat, as #6254 and
  #7820 proposed

Still red, for a separate change: test_joaat_agreement's leonida_mods half (it hashes UTF-8 bytes like
runtime/src/mods.h, so both sides change together), test_f64_conversion and test_f64_output_modifiers (they
expect the output scaling #6314 gated by MODE) and test_bvh_shaders_stage.
2026-11-24 00:28:18 +01:00
e56d97950f Merge pull request #2498 from iasmitionsalvatore/pr/footprint-base-offset
d3d12: GetCopyableFootprints aligns from BaseOffset
2026-11-23 23:47:26 +01:00
0b3caaeeb6 Merge remote-tracking branch 'origin/pr/8956'
# Conflicts:
#	runtime/CMakeLists.txt
2026-11-23 17:46:20 -05:00
1e029d6df2 Merge remote-tracking branch 'origin/pr/8959'
# Conflicts:
#	runtime/shims/d3d12_xs_rootsig.cpp
#	runtime/test/root_sig_test.cpp
2026-11-23 17:46:00 -05:00
be4a51f5d4 Merge remote-tracking branch 'origin/pr/8964'
# Conflicts:
#	runtime/shims/d3d12_vulkan_device.cpp
2026-11-23 17:43:36 -05:00
a9b505f98e Merge remote-tracking branch 'origin/pr/8991'
# Conflicts:
#	runtime/CMakeLists.txt
#	runtime/shims/d3d12_vulkan_device.cpp
2026-11-23 17:42:19 -05:00
8b63b583ae Merge remote-tracking branch 'origin/pr/8995'
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
2026-11-23 17:41:48 -05:00
abde8f1cba Merge remote-tracking branch 'origin/pr/8952' 2026-11-23 17:41:05 -05:00
bacf6f4e2a Merge remote-tracking branch 'origin/pr/8953' 2026-11-23 17:41:05 -05:00
8dbdf6380f Merge remote-tracking branch 'origin/pr/8955' 2026-11-23 17:41:04 -05:00
887a0e4ef2 Merge remote-tracking branch 'origin/pr/8965' 2026-11-23 17:41:02 -05:00
6691d95f9b Merge remote-tracking branch 'origin/pr/8966' 2026-11-23 17:41:02 -05:00
0fdb6c375f Merge remote-tracking branch 'origin/pr/8968' 2026-11-23 17:41:01 -05:00
b05999eb74 Merge remote-tracking branch 'origin/pr/8969' 2026-11-23 17:41:01 -05:00
f942545cf6 Merge remote-tracking branch 'origin/pr/8978' 2026-11-23 17:40:58 -05:00
bc13d83d27 Merge remote-tracking branch 'origin/pr/8981' 2026-11-23 17:40:58 -05:00
120dea0054 Merge remote-tracking branch 'origin/pr/8997' 2026-11-23 17:40:54 -05:00
7734b05623 Merge remote-tracking branch 'origin/pr/9002' 2026-11-23 17:40:53 -05:00
f48adad761 Merge remote-tracking branch 'origin/pr/9523'
# Conflicts:
#	runtime/CMakeLists.txt
#	scripts/build_runtime.ps1
2026-11-23 17:38:03 -05:00
ff8ff4dd96 Merge remote-tracking branch 'origin/pr/9516'
# Conflicts:
#	scripts/build_runtime.ps1
2026-11-23 17:37:15 -05:00
c925ac7f79 Merge remote-tracking branch 'origin/pr/9494'
# Conflicts:
#	docs/design.md
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
2026-11-23 17:36:51 -05:00
671a1a8001 Merge remote-tracking branch 'origin/pr/9492' 2026-11-23 17:32:54 -05:00
bea01df57a Merge remote-tracking branch 'origin/pr/9487' 2026-11-23 17:32:50 -05:00
a60e5eab5c Merge remote-tracking branch 'origin/pr/9734'
# Conflicts:
#	runtime/test/check_d3d12_trace.py
#	tests/test_check_d3d12_trace.py
2026-11-23 17:30:48 -05:00
76a03f293f test(bcrypt_rng): exercise fail-closed STATUS_UNSUCCESSFUL path when host CSPRNG unavailable 2026-11-24 05:30:36 +07:00
21714399e8 Merge remote-tracking branch 'origin/pr/9761'
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
2026-11-23 17:30:03 -05:00
f7b3afcda9 Merge remote-tracking branch 'origin/pr/9754'
# Conflicts:
#	scripts/build_runtime.ps1
2026-11-23 17:29:12 -05:00
527fc199f8 Merge remote-tracking branch 'origin/pr/9767' 2026-11-23 17:24:53 -05:00
5f855fb695 Merge remote-tracking branch 'origin/pr/9766' 2026-11-23 17:24:53 -05:00
2f6aa6fb5b Merge remote-tracking branch 'origin/pr/9765' 2026-11-23 17:24:53 -05:00
8b878766bc Merge remote-tracking branch 'origin/pr/9762' 2026-11-23 17:24:52 -05:00
60f8eb9785 Merge remote-tracking branch 'origin/pr/9757' 2026-11-23 17:24:51 -05:00
25845b1c5a Merge remote-tracking branch 'origin/pr/9752' 2026-11-23 17:24:50 -05:00
b070920614 Merge remote-tracking branch 'origin/pr/9748' 2026-11-23 17:24:49 -05:00
868002b0d8 Merge remote-tracking branch 'origin/pr/9745' 2026-11-23 17:24:48 -05:00
d0707969f0 Merge remote-tracking branch 'origin/pr/9742' 2026-11-23 17:24:47 -05:00
a3e45fc751 Merge remote-tracking branch 'origin/pr/9740' 2026-11-23 17:24:46 -05:00
d5f2b24806 Merge remote-tracking branch 'origin/pr/9728' 2026-11-23 17:24:44 -05:00
8a09abe967 Merge remote-tracking branch 'origin/pr/9719' 2026-11-23 17:24:41 -05:00
368228b604 Merge remote-tracking branch 'origin/pr/9716' 2026-11-23 17:24:40 -05:00
0e707f9383 Merge remote-tracking branch 'origin/pr/9715' 2026-11-23 17:24:40 -05:00
5efd38ed8c Merge remote-tracking branch 'origin/pr/9714' 2026-11-23 17:24:39 -05:00
f6a1a114a1 Merge remote-tracking branch 'origin/pr/9706' 2026-11-23 17:24:37 -05:00
c48a663a82 d3d12/spirv_f16_halves: fix linker fast-path, Private decorations, and device location budget
Fixes four bugs in --f16-interp-fallback per-pipeline linking:
1. link_f16_halves() no longer skips patching on its fast path when static
   VS/PS half locations exceed top_location or when an unused VS static half
   collides with a raw PS input location.
2. Demoting an unused VS static half Output variable to Private now strips
   all interface-only decorations (NoPerspective, Flat, Patch, Centroid,
   Sample, Invariant, Location, Component), avoiding invalid SPIR-V.
3. keep_ps_locs now preserves raw PS input locations (ps_raw_locs) when
   picking relocation slots.
4. CreateGraphicsPipelineState now runs link_f16_halves() when only VS
   declares f16_halves and derives top_location from the physical device's
   min(maxVertexOutputComponents, maxFragmentInputComponents) instead of
   hardcoding 29.

Adds regression tests (cases 6-10) and interface-only decoration validation
in runtime/test/spirv_f16_halves_test.cpp.

AI-assisted (Antigravity).
2026-11-23 23:18:39 +01:00
0c5c0b40ad Keep the ground builder callable for collision regressions 2026-11-23 16:17:36 -06:00
2f48417d49 fix: refuse a mesh PSO whose workgroup memory is over maxMeshSharedMemorySize 2026-11-23 23:16:12 +01:00
29bd7a11a6 gameinput: the device info has its GameInputLabel members
gameinput_abi.h left out the labels of the public v0 layout. In
GameInputControllerAxisInfo and GameInputControllerButtonInfo a label
sits at offset 4, in what is otherwise padding, so the sizes matched
while isContinuous, restValue, legacyDInputIndex and rawReportIndex were
four bytes early. GameInputGamepadInfo and GameInputUiNavigationInfo are
tables of 14 and 21 labels; they were declared empty, and the pointers
in GameInputDeviceInfo led to one-byte members, so a title reading a
label read whatever followed.

The header declares the enum, the two tables and the two label members
and pins each offset that moved. fill_info gives every control the Xbox
label of its position on every pad, since every pad is presented as an
Xbox One pad.

gameinput_test reads the tables by the public header's byte offsets, so
the shim's own header cannot agree with itself.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 23:15:46 +01:00
de17f980ae vk_bindless_test: validate SPIR-V framing via read_spirv_words before Vulkan init 2026-11-24 06:09:24 +08:00
d578b4806e Tests: GPU coverage for ds_wrxchg*_rtn_b64, ds_or_rtn_b64, ds_min_f32 and ds_max_rtn_f32
docs/design.md marks the 64-bit LDS exchanges not GPU-verified, and
cs_lds_atomics_ext.asm (#9494) leaves ds_or_b64 and the f32 min/max
forms out. cs_lds_xchg64_ext.asm runs one lane through
ds_wrxchg_rtn_b64 (both dwords left and the returned pair),
ds_wrxchg2_rtn_b64 at offsets 0/2 (four old and four new dwords),
ds_wrxchg2st64_rtn_b64 at offsets 1/2 (512-byte steps), ds_or_rtn_b64,
ds_min_f32 with a quiet NaN in memory and ds_max_rtn_f32 ordering -0.0
below +0.0. The eight expected words are derived in its header from
the rows. Registered in check.py and run_gpu_tests.py next to
cs_lds_b64_cmpst; the wrxchg row notes the GPU check (the min/max and
bitwise b64 rows get theirs in #9494, to keep the two PRs apart).
2026-11-23 14:09:15 -08:00