Commit Graph

5744 Commits

Author SHA1 Message Date
bd6afab9e8 tools: provide one-command synthetic source-only smoke suite (DX-07) 2026-11-26 00:38:46 +03:00
c116c3fa28 Merge main into t-drive-overlay
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>
2026-11-25 16:38:20 -05:00
c06abf9184 test_inventory: ignore pycache, mirror semantic discovery, distinguish optional retail hints 2026-11-26 00:38:05 +03:00
b7d276df9f tools: provide synthetic test inventory and subsystem map (DX-10) 2026-11-26 00:38:05 +03:00
0bae6f545a Merge main into wave64-partial-wave-zero
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>
2026-11-25 16:37:28 -05:00
5504062179 docs: PowerShell finds MSYS2 git first, which mangles ^{commit}
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:37:21 -05:00
6b09de493c dstorage: reads into physical pages wait for the title's Submit
A queue with auto-submit on submits itself once the entries enqueued
since the last submit reach half its capacity. A request whose
destination is a physical page list names its pages through
DestinationPageArray, a pointer into the title's own page-number table,
and the worker reads that table only when the request runs
(page_transfer). The title fills the page table just before Submit. So a
read started by the self-submit found page 0 (the entry failed) or the
number the slot held before (the data landed in a page that now belongs
to something else, with no error).

A self-submit now stops at the first read into physical pages. That read
and every entry behind it wait for the title's Submit, in order, so a
status entry, fence or event behind a held read still comes after it. A
full queue submits the held entries too, since the title cannot call
Submit while it waits in an enqueue. Close submits everything, as
before. A hold also ends after LEONIDA_DSTORAGE_HOLD_MS (2000 ms unless
set; 0 means no limit), so a path that never calls Submit cannot stall
for good. LEONIDA_DSTORAGE_HOLD_PAGES=0 restores the old self-submit of
everything.

"[rt] ds-hold" counts self-submits, held reads, full-queue and timed
releases, and destination lists that named page 0 when written. It is
printed at each power of two of the counter that moved
(runtime/src/dstorage_hold.h).

The idea is from Marvisak/VIctory eddde73; it also appears in
fxceless/victory-fork 79cfdd9. Written anew for this queue.

Test: dstorage_test, test_page_reads_wait_for_submit: a list changed
between the self-submit and Submit, a list still empty at the
self-submit, a full queue, the default and an explicit time limit, no
limit, the switch, and the page-0 counter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
2026-11-25 16:35:47 -05:00
a344d57bd5 docs: VIctory updates polled in the background; SDK and llvm-mc notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:34:49 -05:00
b79c86f7eb docs/d3d12_vulkan.md: buffer SRVs and CBVs are written (DOC-D3D12-VULKAN-STALE-STATUS)
Section 3.2 listed buffer shader-resource views and constant-buffer views as
known gaps whose V#s are not written. write_buffer_srv writes raw, structured
and typed buffer SRV V#s for CreateShaderResourceView, and
CreateConstantBufferView writes a CBV V# in the console's 16-byte-row form;
d3d12_compute_test checks both.
2026-11-25 22:33:38 +01:00
adf9c3f20b Merge main into gpu/rx9070xt-refresh
Keep this branch's RX 9070 XT row and the rows main added below it (RX 9070, Ryzen 5 7600X iGPU, RTX 5070 Ti, RTX 3080).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:33:16 -03:00
c2f5bd7780 docs: shader rules to take from VIctory into Leonida's translator
Loop iteration cap, rectangle lists, literal sampler compare, quad ops and
helper lanes, VS-to-PS linking by signature row, per-program wave64
emulation, and the runtime shader lookup's keys and miss path, each with
the VIctory source and the Leonida place it lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:31:55 -05:00
6ea35098e5 Merge pull request #1405 from Anonymous78e/gpu-test/rtx5070ti-62101
gpu-test-results: RTX 5070 Ti on NVIDIA 621.01, Windows 11 (GPU-RTX5070TI-62101)
2026-11-25 18:30:43 -03:00
278eec77c8 Merge pull request #824 from lixonik/docs/victory-prior-art
docs: record VIctory as related prior art (DOC-RELATED-PROJECTS-LICENCE)
2026-11-25 22:29:39 +01:00
39c69c2bdc Merge pull request #1796 from Ch1mpleo/carry/old-9936
docs/i18n/ru: the quickstart says shaders, assets and runtime run together (OLD-9936)
2026-11-25 18:28:51 -03:00
dad5527140 Merge pull request #1786 from Ch1mpleo/carry/old-10007
docs/i18n: it, ja, pl-PL quickstarts no longer promise a faster first boot from the pipeline cache (OLD-10007)
2026-11-25 18:28:46 -03:00
fdb892c08c Merge pull request #914 from TuroYT/docs/i18n-index-fr-contributing
docs/i18n: list the French CONTRIBUTING translation in the index (DOC-I18N-INDEX-FR-CONTRIBUTING)
2026-11-25 18:28:42 -03:00
ed5d8570f1 docs: port plan for taking VIctory's fixes into Leonida's runtime
The title's needs in the order it hits them (system calls before the first
frame, the console D3D12 ABI in front of the Vulkan layer, menus, world),
what VIctory does for each and where it lands in Leonida, and where
Leonida's Vulkan design can cut frame time (imported title memory, buffer
device addresses, resizable BAR, asynchronous submission).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:28:27 -05:00
337f0a4dc9 Merge pull request #1794 from Ch1mpleo/carry/old-10038
docs: correct the retail XMem shim status (OLD-10038)
2026-11-25 18:28:20 -03:00
5c6b60e8ad Merge pull request #1117 from robot00f/docs/b3
docs(d3d12_xs_surface): slot 108 is an allocation-info query, not a GUID query (D3D12-SLOT108-QUERY)
2026-11-25 18:28:15 -03:00
36572941c5 Merge pull request #1782 from ShotTechOp/docs/shader-validation-d16-and-mutants
docs/shader_validation.md: document tools/d16_image_probe.py and tools/semantic_mutants.py (DOC-SHADER-VAL-D16-MUTANTS)
2026-11-25 18:27:57 -03:00
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
c9c44fa8cc Merge pull request #1921 from ShotTechOp/docs/gbuffer-and-rpf-tools
docs: document tools/gbuffer_census.py in gbuffer.md and tools/classify_carve.py in rpf.md (DOC-GBUFFER-AND-RPF-TOOLS)
2026-11-25 18:27:14 -03:00
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
2d258c8cd4 d3d12: log the title staging fallback once per Vulkan format
Record which title image formats have no bindable host-transfer memory type. Document the three formats observed on the GTX 1050 Ti by qhukz13.

Suggested-by: qhukz13 (PR #1894)

AI-assisted-by: OpenAI Codex (gpt-6.2-astra)
2026-11-26 07:16:59 +10: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
7551c8aa8c Merge branch 'fix/rt-null-barrier-clear-v2' into local/boot-combined
# Conflicts:
#	runtime/shims/d3d12_xs_device.cpp
2026-11-25 16:06:44 -05:00
1c5aa29a36 Merge branch 'integration/translator-fixes' into local/boot-combined
# Conflicts:
#	runtime/src/main.cpp
2026-11-25 16:06:19 -05: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
0bf7ef8066 runtime: a large compile that fits may pass one that does not, within a bound (RT-BIG-COMPUTE-BUDGET) 2026-11-25 21:59:36 +01:00
5aec2353db Add VIctory sync and run-control tools; let the pad file press buttons
scripts/sync_victory.py fetches DexNom/VIctory and merges new commits into
victory/ with git subtree pull. scripts/port_ctl.py starts a run with its
logs, captures and saves outside the repository, presses stand-in pad keys
through VICTORY_MOVEMENT_FILE, saves frames through VICTORY_CAPTURE_REQUEST
and reads the frame-rate lines.

The movement file now takes every key of the stand-in pad's table (Enter,
Back, Esc, Tab, the D-pad, shoulders, triggers, stick clicks), so menus can
be driven by a script. Tested with cargo test -p victory-hle --features
diagnostics movement (4 passed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:48:32 -05:00
84816055d5 wave64_emulate_opt: a guarded s_barrier keeps only the tail in the round scheduler (SHADER-W64-STRUCTURED-SBARRIER-TAIL)
plan_structured_emulation gave no plan for any multi-wave program with an s_barrier under a guard or in a loop, which every mesh program has (NGG epilogue). The tail scheduler used from an early s_endpgm on now takes over from that s_barrier on, and what comes before is emitted structured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:45:21 +01:00
34945a64a9 docs/d3d12_vulkan.md: drop stale "not implemented" status for buffer SRVs, streams, mesh PSOs and WriteBufferImmediate (DOC-D3D12-VULKAN-STALE-STATUS)
The status paragraph said buffer SRVs, CreatePipelineState streams and mesh
shaders were missing; the device writes buffer V#s, parses streams and reports
MeshShaderTier 1 where the GPU has VK_EXT_mesh_shader. WriteBufferImmediate was
described as refused because no buffer had a GPU VA; buffers have VAs and the
device test writes through a placed buffer's. Section 4.6's "Not implemented
yet" contradicted the D3D-399 paragraph above it and listed mesh statistics
twice. The device test's comment on the unresolved write gets the real reason.
2026-11-25 21:31:30 +01:00
9f98dcc617 Improve post-load GPU memory and pipeline handling (RT-POST-LOAD-GPU-MEMORY)
Fall back to a dedicated buffer allocation when the shared arena fills.
Update console descriptors and resource backing, preserve pipeline cache
entries, and replay mesh records using bounded indirect arguments. Keep
scripted input available until read and cover the runtime and translator
paths with synthetic tests.

Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>
Co-authored-by: ivanepsilondelta <264061546+ivanepsilondelta@users.noreply.github.com>
2026-11-25 14:30:51 -06:00
1b2720ba47 rdna2spirv: translate image_get_lod on a cube (IMAGE-GET-LOD-CUBE)
A cube binds as the 6-layer 2D-array view cube_coords already builds for
image_sample: the query takes the projected s - 1 and t - 1 (the 2D-array u and
v) and does not read the third word (8 * slice + face). a16 packs the three
coordinates differently, so a16 cube stays Unsupported.

No corpus shader uses cube image_get_lod (705 in the 26,503-shader set: 702 2D,
3 2D array), so no title output changes; a 2,651-shader shard translates to
byte-identical .spv before and after. Confirmed by the RDNA2 ISA MIMG GET_LOD
form and the existing cube sample mapping (docs/design.md).

Tests: tests/semantic/test_image_get_lod_cube.py 5/5 (shape, source VGPRs, face
word unread, refusals, spirv-val); full tests/semantic 6,317 tests pass.

AI-assisted.
2026-11-25 15:29:55 -05:00
06ba2eb2de d3d12: stage title images when host transfer has no memory type
Check the host-transfer memory requirements before selecting the backing for a CPU-fillable title texture. Exercise the mapped linear R8 plane with a driver shim that returns no compatible memory types for the host-transfer image.

Reported-by: qhukz13 (PR #1894)

AI-assisted-by: OpenAI Codex (gpt-6.2-astra)
2026-11-26 06:21:47 +10:00
b986d274bf d3d12: a mesh PSO with conservative rasterization needs no topology type (RT-MESH-PSO-CONSERVATIVE-TOPOLOGY)
Finding by Undefined3301 in #1608.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:20:01 +01:00