Commit Graph

4656 Commits

Author SHA1 Message Date
e34ff17e9a Merge pull request #1805 from Ch1mpleo/carry/old-9892
docs: verify movie archive padding and trailer totals (OLD-9892)
2026-11-25 18:27:04 -03:00
d998fc71a4 Merge pull request #1006 from robot00f/docs/d3d12-iid-inventory-retail
docs: the retail IID inventory the d3d12_iid_scan answers (D3D12-IID-INVENTORY-RETAIL)
2026-11-25 18:26:59 -03:00
14a5cbbb18 Merge pull request #965 from TheGeogeo/docs/dashboard-ctest-junit
docs: preserve CTest skips in dashboard reports (DOC-DASH-CTEST-JUNIT)
2026-11-25 18:26:54 -03:00
105483dc79 Merge pull request #945 from TheGeogeo/docs/uav-clear-rounding
docs: UAV float clears round toward zero, as the code does (DOC-UAV-CLEAR-ROUNDING)
2026-11-25 18:26:21 -03:00
cff3784d2c Merge pull request #912 from TuroYT/docs/first-light-48-cases
docs/first_light: the test has 48 cases, not twenty-five (DOC-FIRST-LIGHT-TEST-COUNT)
2026-11-25 18:26:15 -03:00
ef589bca82 Merge pull request #911 from TuroYT/docs/models-skinned-test-count
docs/models: test_skinned_glb.py runs 30 tests, not 24 (DOC-MODELS-SKINNED-TEST-COUNT)
2026-11-25 18:26:10 -03:00
18d1851cf3 Merge pull request #273 from ubiquitarianism/old-pr/10005
docs/boot.md: what a Wine prefix has to supply, and the quiet failure without it
2026-11-25 18:25:55 -03:00
9807902cdc Merge pull request #1840 from delysidemanYT1/doc-gpu-coordination-link
DOC-GPU-COORDINATION-LINK: Point GPU testers to the active coordination issue
2026-11-25 18:24:57 -03:00
3fe69687e0 Merge pull request #1471 from LouisRiverstone/doc-testing-python-min
docs/testing.md: Python 3.12+, as make_game.py requires (DOC-TESTING-PYTHON-MIN)
2026-11-25 18:24:49 -03:00
f5bc25cdc0 Merge pull request #860 from hugo0024/doc-imgatomic-mvk
docs/testing.md: Known problems row for ps_imgatomic on MoltenVK 1.4.2 (DOC-IMGATOMIC-MVK)
2026-11-25 22:20:13 +01:00
29844cc040 Merge pull request #624 from jarvixaiassistant-glitch/fix/old-10045-vk-barycentric-ext
vk_subgroup_info: per_vertex_inputs needs VK_KHR_fragment_shader_barycentric listed (OLD-10045)
2026-11-25 22:19:22 +01:00
be2f4026c9 Merge pull request #635 from kawaii-shakal/gpu-rtx5070ti
gpu-test-results: RTX 5070 Ti (Blackwell, Windows 11, NVIDIA 617.42) on main 21625bca (GPU-RTX5070TI-WIN)
2026-11-25 22:18:12 +01:00
a224b5d145 Merge pull request #843 from snain0511/gpu-rx9070-raphael-win
gpu-test-results: RX 9070 and Ryzen 5 7600X iGPU (gfx1036) on AMD 26.11.2, Windows 11 (GPU-RX9070-RAPHAEL-WIN)
2026-11-25 22:17:20 +01:00
9d93300288 Merge pull request #415 from tengotengo/gpu-results/rtx-3080
GPU results: NVIDIA GeForce RTX 3080 10 GB (Ampere) on main d2cd6c0 (GPU-RTX3080)
2026-11-25 22:16:29 +01:00
7c39802eaa Merge pull request #854 from dpalacios69/docs-no-avx-hosts
docs/cpu_features.md: document hosts without AVX and SDE+Wine findings (DOC-NO-AVX-HOSTS)
2026-11-25 22:15:25 +01:00
9cd0c3f427 Merge pull request #1759 from abnalstlll-byte/feat/rt-xdxr-bvh-rehydrate-batched2x
xbox_bvh_builder: implement RehydrateRaytracingAccelerationStructureBatched2X (RT-XDXR-BVH-REHYDRATE-BATCHED2X)
2026-11-25 22:10:34 +01:00
ae1b48288b Merge pull request #659 from dpalacios69/docs-linux-fedora-noroot
docs/linux.md: add root-free micromamba setup section (DOC-LINUX-FEDORA-NOROOT)
2026-11-25 22:04:46 +01:00
5da72d19f0 Merge pull request #1922 from kawaii-shakal/title-bar-hud
d3d12_xs: LEONIDA_TITLE_HUD shows frame rate, memory and pipeline compiles in the window's title bar (RT-TITLE-HUD)
2026-11-25 20:39:34 +01:00
ef205eec98 xbox_bvh_builder: review fixes for batched rehydration (RT-XDXR-BVH-REHYDRATE-BATCHED2X)
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>
2026-11-25 14:37:34 -05:00
b352aa9be9 xbox_bvh_builder: supply scratch buffer and address review feedback (RT-XDXR-BVH-REHYDRATE-BATCHED2X)
- 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).
2026-11-25 22:30:44 +03:00
cb1cb86e92 xbox_bvh_builder: rebuild from geometry and refuse source-only rehydration (RT-XDXR-BVH-REHYDRATE-BATCHED2X)
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).
2026-11-25 22:30:44 +03:00
07e89b1935 xbox_bvh_builder: implement RehydrateRaytracingAccelerationStructureBatched2X (RT-XDXR-BVH-REHYDRATE-BATCHED2X)
Implements XboxBvhBuilder::RehydrateRaytracingAccelerationStructureBatched2X
in runtime/shims/xbox_bvh_builder.cpp. The shim now rebuilds or deserializes
each acceleration structure on the command list via ID3D12GraphicsCommandList4
rather than stubbing out with E_NOTIMPL, resolving the interactive boot stop
reported by timbot103 past story-load texture streaming.

Validates count == 0 (S_OK), null list / descs (E_INVALIDARG), and adds unit
coverage in tests/test_xbox_bvh_builder_rehydrate.py and runtime/test/xbox_bvh_builder_test.cpp.

AI-assisted (Claude Code)
2026-11-25 22:30:44 +03:00
e18b59a5b7 Merge pull request #1612 from Tyrannys/first-run-pad-focus
runtime: the first-run UI keyboard pad reads keys only with focus (RT-FIRST-RUN-PAD-FOCUS)
2026-11-25 20:30:08 +01:00
cee965560c Merge pull request #1814 from timbot103/d3d-clear-uav-3d-slice
D3D-CLEAR-UAV-3D-SLICE: clear selected 3D UAV slices and rectangles
2026-11-25 20:29:08 +01:00
6a2e9ea93a Merge pull request #1778 from abnalstlll-byte/feat/shader-dpp-neg-bound-ctrl
rdna2spirv: apply src0 float modifiers after bound_ctrl zero selection (SHADER-DPP-NEG-BOUND-CTRL)
2026-11-25 20:19:31 +01:00
e380a69a60 Merge pull request #1950 from kurrutako/rt/session-cache-at-exit
d3d12: write the session pipeline cache when the run ends with the device alive (RT-SESSION-CACHE-AT-EXIT)
2026-11-25 20:15:15 +01:00
490f5b9ec2 Merge pull request #674 from DadaCap/vcc-tuple-resync
rdna2spirv: put back the instructions llvm-mc's junk swallowed after a tuple into vcc (SHADER-VCC-TUPLE-RESYNC)
2026-11-25 20:07:46 +01:00
6ea4ac39f5 docs: record the retail IID inventory the iid scan answers (D3D12-IID-INVENTORY-RETAIL) 2026-11-25 16:03:44 -03:00
31e8ba5fbe docs/design.md: note RDNA2 not measured for DPP invalid-lane modifier rule (SHADER-DPP-NEG-BOUND-CTRL)
AI-assisted (Claude Code, Claude Opus 5.5)
2026-11-25 20:44:16 +03:00
aeec1ddc6f Merge pull request #1850 from cheltyi/fix/gamedata-empty-typed-objects
gamedata_reader: preserve empty polymorphic objects (GAMEDATA-EMPTY-TYPED-OBJECTS)
2026-11-25 18:28:59 +01:00
fe1553456f Merge pull request #808 from whoalin1/shader-structured-pc-unwrap
cfg_structure / rdna2spirv: unwrap tautological %pc guards in structured CFGs (ms_wave_info_s3 AMD crash, SHADER-STRUCTURED-PC-UNWRAP)
2026-11-25 17:46:31 +01:00
2e61d4080f docs: when the session pipeline cache is written at exit (RT-SESSION-CACHE-AT-EXIT)
AI-assisted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:31:01 +01:00
3e729e84c2 docs/design.md: escape pipes in DPP table row and note gfx1101 measurement (SHADER-DPP-NEG-BOUND-CTRL)
AI-assisted (Claude Code)
2026-11-25 19:02:42 +03:00
1c5e2dcab1 title HUD: with no frame in an interval, show how long since the last one
A hang read as "0 fps 0.0 ms (worst 0)", which looks like a slow frame. Now it reads
"0 fps, no frame for 12.5 s". title_hud_test checks it after presents stop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:01:18 +05:00
e86b3ceaa8 d3d12_xs: LEONIDA_TITLE_HUD shows frame rate, memory and pipeline compiles in the window's title bar (RT-TITLE-HUD)
A tester has no way to see, during a boot, whether the game is slow because of frame time, memory pressure or
pipelines compiled in the frame. With LEONIDA_TITLE_HUD=1 the window the title presents in gets, twice a
second:
- fps and the average and worst frame time from PresentX;
- private memory and working set;
- local GPU memory against the DXGI budget, and shared GPU memory;
- pipelines created and the seconds spent in vkCreate*Pipelines in the last interval (with
  LEONIDA_MEM_PROBE);
- time since the first present.

A thread of its own sets the text with SendMessageTimeout, so a busy or hung window thread never holds a
present. title_hud_test drives a real window from another thread and checks the text and the shutdown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:51:50 +05:00
daf31b820b replay: copies between depth formats that differ go through transfer scratch (RT-DEPTH-FORMAT-COPY-STAGED)
A CopyTextureRegion of the depth plane from a D32_SFLOAT_S8_UINT image into a
D32_SFLOAT one was replayed as vkCmdCopyImage. Vulkan requires depth/stencil
formats to match exactly (VUID-vkCmdCopyImage-srcImage-01548), and the NVIDIA
driver (RTX 4070 Laptop, 621.40) wrote past the end of the D32 image: the
world-start WRITE_INVALID device loss, with the fault at the first byte after a
2560x1440 D32_SFLOAT image (VK_EXT_device_address_binding_report) and this VUID
reported by the validation layer just before the loss.

depth_format_pair: two depth formats with the same depth encoding but not the
same VkFormat (D32 / D32S8, D16 / D16S8, X8_D24 / D24S8) take the image ->
scratch -> image path depth <-> colour and A8 copies already use; the depth
aspect has the same texel layout in a buffer on both sides.

replay_copy_offset_test: the D32S8 -> D32 and D32 -> D32S8 depth-plane copies
are staged (no vkCmdCopyImage, depth aspect, 4 bytes a texel), and D32 -> D32
keeps vkCmdCopyImage. Fails without the change (6 checks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:48:26 +01:00
c3b58ef03d Merge pull request #1732 from kawaii-shakal/arena-rebar-cap
d3d12: keep a Resizable BAR arena in VRAM when the driver excludes it from a very large buffer (RT-ARENA-REBAR-FIT)
2026-11-25 15:38:52 +01:00
24a29f8b4e Merge pull request #1827 from DadaCap/title-staged-no-host-copy
d3d12: title images use the staged upload on a device without host image copies (RT-TITLE-STAGED-NO-HOST-COPY)
2026-11-25 15:37:56 +01:00
71a769d7d8 Merge pull request #1691 from OreoFR/rt-slot57-depth-raster
d3d12_xs: depth, stencil and raster state for slot 57 native pipelines from state blob A (RT-SLOT57-DEPTH-RASTER)
2026-11-25 14:55:52 +01:00
77baf90627 Merge pull request #1703 from OreoFR/rt-dual-source-blend
d3d12: dual-source blending reads SV_Target1 at Location 0, Index 1 (RT-DUAL-SOURCE-BLEND)
2026-11-25 14:46:46 +01:00
5e95fa2f46 Merge pull request #1671 from OreoFR/rt-slot57-blend-state
d3d12_xs: blend state for slot 57 native pipelines from state blob A (RT-SLOT57-BLEND-STATE)
2026-11-25 14:28:49 +01:00
03096929f4 Merge main into first-run-pad-focus
Keep main's first-run profile without GPU completion labels and this
branch's focused keyboard pad (LEONIDA_KEYBOARD_PAD=1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 07:19:48 -06:00
384abe5b06 Merge pull request #1843 from aslan2142/rt-input-script-no-sdl3
RT-INPUT-SCRIPT-NO-SDL3: scripted input in builds without SDL3
2026-11-25 14:15:49 +01:00
6e85823da4 gamedata_reader: preserve empty polymorphic objects 2026-11-25 16:05:38 +03:00
4bed972876 DOC-GPU-COORDINATION-LINK: Point GPU testers to the active coordination issue 2026-11-25 13:58:27 +01:00
ea6d535ff5 d3d12: title images use the staged upload on a device without host image copies (RT-TITLE-STAGED-NO-HOST-COPY)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:40:50 +01:00
c68f494160 RT-INPUT-SCRIPT-NO-SDL3: serve LEONIDA_INPUT_SCRIPT without SDL3
A build without SDL3 answered GameInputCreate with no devices and E_NOTIMPL
for every other slot, so the title waited at its first "press A" prompt
forever: no CI artifact or offline build could get past it.

With LEONIDA_INPUT_SCRIPT set, gameinput_no_sdl.cpp now serves one scripted
pad (an Xbox One gamepad) driven by the script alone: device enumeration
through RegisterDeviceCallback (blocking, async, dispatcher), FindDeviceFromId,
and GetCurrentReading/GetNextReading/GetPreviousReading whose gamepad and UI
navigation state follow the script. Readings are taken when the title asks,
so no thread polls. Without the variable it behaves as before.

The parser, the 300 ms timeline, the button names, the press log lines and
the UI navigation mapping move from gameinput.cpp into gameinput_script.h,
which both shims use; nothing in it needs SDL. gameinput.cpp checks the
shared SDL button numbers against SDL_GamepadButton at compile time.

gameinput_no_sdl_test --input-script (CTest gameinput_no_sdl_script) checks
the scripted pad on a fake clock. Docs: runtime/README.md, docs/gameinput.md,
docs/linux_proton.md, docs/README.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 07:39:13 -05:00
597cf76623 TOOLS-WINE-GAME-RUN: scripts/run_game_wine.sh, one bounded game run under Wine
The launcher runs gta6rt.exe --run once under Wine on Linux, headless on a
private kwin_wayland --virtual --xwayland session (Xvfb has no DRI3, so RADV
cannot present there) or on the current display with --visible. Sound is off
(Wine's audio drivers disabled, Pulse/PipeWire/ALSA pointed at nothing,
LEONIDA_AUDIO=silent for the runtime's silent output endpoint), --device pins
the Vulkan device through MESA_VK_DEVICE_SELECT, and a hard time limit, a lock
and full teardown bound the run. Every path comes from arguments or the
environment.

tools/game_run_summary.py prints counts only: run time, end, exceptions by
code, D3D12 calls by outcome, presents, the top failing calls and the [rt]
lines by category with numbers masked. It never prints a log line.

Tests need no game, Wine or GPU: the script against stubs, the summary on
synthetic run folders. docs/linux_proton.md describes the script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 07:30:48 -05:00
926e9d3ef3 D3D-CLEAR-UAV-3D-SLICE: clear selected 3D UAV slices and rectangles 2026-11-25 22:27:19 +10:00
10642c66bf docs: verify movie archive padding and trailer totals
AI-assisted (Codex).
2026-11-25 19:19:58 +07:00