Commit Graph

5744 Commits

Author SHA1 Message Date
15701e412d Merge pull request #1894 from ecox982745/ecox/title-staged-per-format
d3d12: stage title textures when their format or usage rules out host copies
2026-11-29 16:43:14 +01:00
3580a9d308 Merge pull request #1831 from potatoe0100/carry/old-9966
gameinput: preserve controller transitions between polls (OLD-9966, carries #233)
2026-11-29 16:42:49 +01:00
bd643e46e7 Merge pull request #1167 from robot00f/docs/b5
docs(audio_hal_exe_calls): fill the argument gaps the page left open (AUDIO-IMPORT-CALL-SHAPES)
2026-11-29 15:41:47 +01:00
ca89cb0189 Merge pull request #1045 from robot00f/docs/agent2
docs(d3d12_command_objects): 0x48/0x50 are heap handle getters on heap objects (D3D12-HEAP-HANDLE-SLOTS)
2026-11-29 15:41:39 +01:00
a793e3fdf4 Merge pull request #1010 from robot00f/docs/d3d12-createdevice-params
docs/boot: the CreateDevice params are 0x50 bytes, not 24 words (D3D12-CREATEDEVICE-PARAMS)
2026-11-29 15:41:29 +01:00
e7281f33ff Merge pull request #1143 from robot00f/docs/b2
docs(d3d12_vulkan): what the title does with GetDescriptorHandleIncrementSize (D3D12-DESCRIPTOR-INCREMENTS)
2026-11-29 15:38:57 +01:00
50d09b373c Merge pull request #1018 from robot00f/docs/agent5
docs(d3d12_vulkan): the title already supports the linear tile path (XG-SWIZZLE-LINEAR-PATH)
2026-11-29 15:38:45 +01:00
67837f00c3 Merge pull request #707 from abnalstlll-byte/feat/dx10-test-inventory
tools: provide synthetic test inventory and subsystem map (DX-10)
2026-11-29 15:38:27 +01:00
ce792f55fb Preserve all 32 bits in dynamic R32_UINT loads 2026-11-29 09:38:14 -05:00
a58d22fe2e Merge upstream ProjectLeonida/mandy main (ddfe24fba) into fix/rendering-correctness 2026-11-29 09:37:37 -05:00
e1e78f34c0 SHADER-VCC-BASE-GPU-VERIFIED: the vcc base row is GPU-checked on RDNA2 and under wave64 emulation 2026-11-29 15:34:54 +01:00
cd5ee11079 rdna2spirv(r9b): unconditional CS/MS LDS bounds, PS EarlyFragmentTests, mesh epilogue & PS quad swizzle
Round 9b translator fixes for rendering correctness and Mandy d3d12/ parity:

1. Unconditional CS & MS LDS OOB bounds (Mandy 21633b328 parity):
   - Record g.lds_declared from PSV0.shared for MS and RSRC2.LDS_SIZE for CS.
   - Whenever g.lds_declared > 0 (opt-out --no-lds-bounds), set
     g.lds_dwords = g.lds_bound = min(g.lds_declared, 16384) so every LDS
     read, write, sub-dword, wide, and atomic op goes through lds_access()
     (OOB reads return 0, OOB writes/atomics dropped instead of wrapping).

2. PS DB_SHADER_CONTROL bit 12 EarlyFragmentTests (Mandy f33940415/bf479a3cd):
   - Add fssm_header.db_shader_control() reading u32 at E + 0x138 (0x24C for
     rec = 0xB0; 3,023/12,101 corpus PS have bit 12 DEPTH_BEFORE_SHADER set).
   - Emit OpExecutionMode %main EarlyFragmentTests (opt-out --no-early-depth)
     and record early_depth in shader_meta when bit 12 is set and the PS does
     not export depth/stencil (no exp mrtz, DB_SHADER_CONTROL & 0x7 == 0, no
     OSG1 SV_Depth*/SV_StencilRef).

3. Defensive mesh epilogue & PS helper-lane quad swizzle:
   - MeshEXT and --mesh-compute epilogues explicitly write CullPrimitiveEXT =
     true (1) and (0, 0, 0) when %mli < %msp and !%ms_has_prim.
   - Lower quad-local ds_swizzle_b32 in PS via OpGroupNonUniformQuadBroadcast /
     OpGroupNonUniformQuadSwap (GroupNonUniformQuad capability) so Vulkan 2x2
     helper invocations participate on AMD RADV while EXEC-masked lanes still
     read 0.

Verified: compileall, check_no_game_data.py, 6,674/6,674 semantic tests (0
failures), 200/200 corpus slice (200/200 spirv-val), plus targeted LDS MS
(5/5), LDS CS (60/60), early-depth PS (120/120), and PS quad-swizzle (50/50)
corpus slices (100% spirv-val). AI-assisted.
2026-11-29 09:25:40 -05:00
d22e725cb6 Merge pull request #2502 from Tyrannys/docs/running-dstorage-history-regen
docs/running.md: regenerate the DirectStorage predictor profile after 2a491668a (DOCS-RUNNING-DSTORAGE-HISTORY-REGEN)
2026-11-29 15:09:27 +01:00
528e0862f2 runtime: LEONIDA_SKIP_ASSERTS steps over guest asserts without a trace (RT-526)
A diagnostic for the retail boot (RT-5 follow-ups), off the hot path and with no behaviour change unless asked
for: LEONIDA_SKIP_ASSERTS=N (src/assert_skip.h, installed by main.cpp before any image code runs under
--init/--run): a vectored handler, added last, steps over up to N int3 (0xCC) at addresses in no host module and
logs each one as module+RVA (and as an int3_skipped trace event when --trace is open). After N it says so once
and the next int3 ends the run as before. An int3 in a host module, a breakpoint with no 0xCC at its address, or
a RIP that is neither at nor one past the 0xCC is passed on. Needs no --trace and no debugger.

Tests (synthetic, no game files): assert_skip_test (int3 in a VirtualAlloc'd page, the limit, a host-module int3,
a two-byte int 3, value parsing) and run_tiny_game_skip_asserts (two int3 in the mapped stand-in game, stepped
over end to end).

Carried over from old upstream PR 9961 (#228) without its caller logging for forwarded device slots, which the
carry-over of old PR 9990 (#1390) brings instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:55:11 -03:00
57050af6c3 Merge origin/main into carry/pr-2362
dpp_insn: main's v_cvt_f32_f16 pass-through kept; every other op gets neg/abs forwarded on args[first] (main's index) instead of the eager 32-bit modify, as the PR does. design.md DPP row: PR sentence on main's text.

Co-authored-by: ShotTechOp <95485630+ShotTechOp@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:29 +01:00
ce907ce756 Merge origin/main into carry/pr-2062
d3d12_vulkan_device: report_pipeline_cache_growth() before main's over_save_limit check, note_pipeline_cache_size() before main's journal setup. Docs: main's paragraph, then the PR's growth-stall text without its old 256 MiB cap line.

Co-authored-by: Galaxy <23423870+thegalaxydev@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:25 +01:00
173c5d41a6 Merge origin/main into carry/pr-2174
vk_harness: main's has_cap scan of both stages, plus needs_interlock = has_cap(fs_code, 5378) from the PR.

Co-authored-by: QemmHD <290605352+QemmHD@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:23 +01:00
34ddcc1526 Merge origin/main into carry/pr-2173
CMakeLists: d3d12_backend_test (PR) and the Vulkan headers version check (main) both kept.

Co-authored-by: quartz-heron-58 <245169279+quartz-heron-58@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:23 +01:00
0e7e1059d3 Merge pull request #2575 from MoonEyes/claude/d3d-bundle-execute-indirect-37f83c 2026-11-29 13:44:13 +01:00
c34cec72ee Merge pull request #2593 from Bloh09/fix/ci-main-red-tests 2026-11-29 13:44:04 +01:00
b10cae3b99 rendering(r5c): guard V# s_buffer_load and buffer_* ops on SQ_RSRC_BUF.TYPE == 0
GFX10.3 V# buffer descriptors require w[3][31:30] == 0 (SQ_RSRC_BUF.TYPE == 0); descriptors with w[3][31:30] != 0 are image T#s or non-buffer resources. Previously Gen.scalar_load and Gen.buffer_address ignored w[3][31:30], so an async-compute s_buffer_load reading a console-heap slot overwritten with a T# computed a huge limit and dereferenced an unmapped VA (SQC data GPUVM fault at t ~184-203 s).

Gate Gen.scalar_load (sbuf == True) and Gen.buffer_address on uint32(w[3]) < 0x40000000 (skipping the runtime check when w[3] is a known literal < 0x40000000 and forcing OOB when >= 0x40000000), document the rule in docs/design.md, and add 7 semantic + CPU ReadLog regression tests.
2026-11-29 06:34:53 -05:00
d88b2deea2 rendering(r5b): promote barrier+write shaders to VulkanMemoryModel with NonPrivatePointer/NonPrivateTexel
Under OpMemoryModel PhysicalStorageBuffer64 GLSL450 (and for plain Aligned PSB loads/stores even under VulkanMemoryModel), OpControlBarrier 0x948 does not invalidate per-CU GL0 vector caches on AMD RADV/ACO (Navi31). Multi-wave workgroups communicating through global buffers across s_barrier (or wave64-emulate ordering barriers) read stale GL0 values across CU0/CU1, corrupting facial-rig compute graph evaluation (collapsing character jaws).

Detect workgroup barriers paired with PhysicalStorageBuffer or storage-image writes+reads (236 shaders, <0.9% of corpus), promote them to VulkanMemoryModel with NonPrivatePointer/NonPrivateTexel and 0x6948 barriers, leave non-writing barrier shaders on GLSL450, document the rule in docs/design.md, and add 9 semantic regression tests.
2026-11-29 06:34:53 -05:00
b3c8d1b60a rendering(r4b-spv): fix wave32 s_mov_b64 vcc tuples, partial image_store RMW, and 64-bit 2D image_atomic on R64ui binding 29 2026-11-29 06:34:52 -05:00
09c99e53e3 rendering(r4a): unpatch integer SV_Target exports (UINT/SINT) and upgrade native s_barrier to 0x948/0x6948 2026-11-29 06:34:51 -05:00
eb1cf5e96e rendering(r3): fix Blob A CB_TARGET_MASK (+0xcc), depth bias, T# bugs 1A-1D, OMSetDepthBounds replay, and stage-link polish 2026-11-29 06:34:13 -05:00
314b4e73dd Merge upstream ProjectLeonida/mandy main (b589e0fe0) into round10 base
# Conflicts:
#	docs/design.md
#	runtime/shims/d3d12_vulkan_device.cpp
#	runtime/src/queue_holds.h
#	runtime/src/shader_library.h
#	runtime/src/vulkan_backend.h
#	runtime/src/vulkan_replay.h
#	runtime/test/vk_harness.cpp
#	tests/semantic/test_wave32_lane_select.py
#	tools/lane_masks.py
#	tools/rdna2spirv.py
2026-11-29 06:33:39 -05:00
62ee572be5 Merge ProjectLeonida/mandy main into tools/chain-check 2026-11-29 09:49:48 +00:00
f58143876e Merge ProjectLeonida/mandy main into claude/d3d-bundle-execute-indirect-37f83c 2026-11-29 09:49:45 +00:00
6d1b43911c Merge ProjectLeonida/mandy main into feat/picture-metrics
# Conflicts:
#	docs/README.md
2026-11-29 09:49:01 +00:00
dfad96ba7c Merge origin/main into #1994 (carry prep)
docs/design.md: constant lane masks row keeps main's plain-data VCC sentence and the PR's exec_hi sentence.

Co-authored-by: ShotTechOp <95485630+ShotTechOp@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:41:18 +01:00
e7c3366210 Merge origin/main into #1906 (carry prep)
docs/design.md: wave64 emulation row keeps main's barrier text and the PR's s_bitset sentence.

Co-authored-by: Jordan <44410206+JordanWebDev@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:41:15 +01:00
0b367b089e Merge origin/main into #1907 (carry prep)
docs/design.md: SHADER-10 row keeps main's text and the PR's image-atomics sentence.

Co-authored-by: Jordan <44410206+JordanWebDev@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:41:14 +01:00
4f958ab44b Merge origin/main into #2093 (carry prep)
tools/spirv_opt.py: both pinned_ids (main) and the SROA parameters (PR); main's id_type Result Type check kept after the PR's const_type check on null-zero loads; main's OpUndef/OpSpecConstant* const_type kept. tests/test_spirv_opt.py: both sets of new tests.

Co-authored-by: JARVIX <273200855+jarvixaiassistant-glitch@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:41:13 +01:00
fb5d04b3f9 Merge origin/main into #1050 (carry prep)
runtime/CMakeLists.txt: kept both test blocks (console_list_records and main's gpu_label_memory).

Co-authored-by: Gavin Bloom <209302503+baldyb4242@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:41:07 +01:00
54b2a81e95 Merge pull request #2508 from lixonik/rt-picture-2d-layers-compose-alpha
present_compose: fix premultiplied sRGB and additive alpha plane 1 decoding
2026-11-29 09:20:13 +01:00
01c555a3c1 Merge pull request #687 from kotekompotek/work/d3d12-xs-list-slot80-dispatch
d3d12_xs: map console list slot 80 DispatchX to PC Dispatch slot 14
2026-11-29 09:10:46 +01:00
770f5e0e18 Merge remote-tracking branch 'origin/main' into work/dstorage-multilevel-bcpack-fit 2026-11-28 20:46:18 -08:00
3c1f549fd8 docs/testing: record the two ps_* KosmicKrisp NaN cases
ps_cndmask_sign_mods and ps_valu16_mad_sel fail 4096/4096 on KosmicKrisp
(Mesa 26.3.1) and pass on llvmpipe with the same Mesa and on MoltenVK
1.4.2; both read back 0x7fc00000 where the shader wrote a non-canonical
NaN or 0xffffffff, the same nir_to_msl constant path already recorded
for cs_bvh. Measured on an Apple M3, macOS 27.0.
2026-11-29 14:01:16 +10:00
bf458bbcb3 Merge remote-tracking branch 'origin/main' into lb
# Conflicts:
#	docs/design.md
2026-11-29 04:52:45 +01:00
3fbfcc6f8d Merge upstream/main into fix/ci-main-red-tests
Resolved conflicts in bench_translate.py, export_old_pr_manifest.py,
pc_prompt_glyphs.py and xbox_prompt_glyphs.py by taking main's
errors=replace guards (#2590). Dropped CI-STDOUT-GUARD-NEW-TOOLS.
2026-11-28 19:40:09 -08:00
8bfd5ada37 Merge pull request #2550 from kirigayakazima/fix/ci-repo-url-rename
make_game, progress_dashboard: update default repository URL to ProjectLeonida/mandy (CI-REPO-URL-RENAME)
2026-11-29 04:36:47 +01:00
b830bd3eb5 Merge pull request #1181 from whoalin1/shader-468-f16-varying
rdna2spirv: f16 interp deltas and toward-zero p2 narrow (SHADER-468)
2026-11-29 04:36:37 +01:00
9fac739da4 Merge pull request #2239 from zmasi/fix/rdna2spirv-f16-interp-computed-ij
rdna2spirv: lower computed I/J barycentrics under --f16-interp-fallback (SHADER-F16-INTERP-COMPUTED-IJ)
2026-11-29 04:36:24 +01:00
68c7943473 Merge pull request #2506 from qhukz13/cont/mesh-serial-compute
rdna2spirv: --mesh-serial-waves under --mesh-compute too (SHADER-W64-MESH-SERIAL-COMPUTE)
2026-11-29 04:36:14 +01:00
371d8556f9 Merge pull request #1528 from kawaii-shakal/input-out-of-the-box
make_game, gameinput: controller, keyboard and mouse input out of the box (INPUT-OUT-OF-THE-BOX)
2026-11-29 04:36:04 +01:00
02944d4ca1 Merge pull request #850 from c4k3ss/shader/addr-no-int64
rdna2spirv: 64-bit buffer addresses without Int64, so shaders run without shaderInt64 (SHADER-423)
2026-11-29 03:10:23 +01:00
59e65849b0 Merge pull request #446 from bobcatchris/saves-blob-name
SAVE-DATA-BLOB: import save payloads under the title's blob name
2026-11-29 02:37:02 +01:00
204bfbbd11 Merge pull request #498 from bobcatchris/boot-render-diagnostics
BOOT-RENDER-DIAG: summarize render evidence in boot traces
2026-11-29 02:36:30 +01:00
bf574cf31a docs: links and the clone line follow the README rewrite (CI-README-REWRITE-LINKS) 2026-11-28 17:31:06 -08:00
fd42898706 Merge pull request #1540 from Rain156/rain/d3d12-first-light-camera
tests: draw the First Light perspective camera through D3D12 (TEST-D3D12-FIRST-LIGHT-CAMERA)
2026-11-29 02:06:11 +01:00