Commit Graph

18350 Commits

Author SHA1 Message Date
f49bcfe7eb Merge pull request #694 from abnalstlll-byte/feat/pe-shader-containers-multi-image
pe_shader_containers: parse and validate multi-image container layouts (OLD-9775)
2026-11-29 15:38:36 +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
fd49353935 Merge pull request #1159 from Taffyyy-ops/fix/awc-markers-short-read
awc_markers: reject incomplete reads (AWC-MARKERS-SHORT-READ)
2026-11-29 15:38:18 +01:00
ce792f55fb Preserve all 32 bits in dynamic R32_UINT loads 2026-11-29 09:38:14 -05:00
02bd09b41b Merge pull request #1142 from Taffyyy-ops/fix/anim-skel-report-error
anim_skel_match: report JSON write errors (ANIM-SKEL-REPORT-ERROR)
2026-11-29 15:38:07 +01:00
a554262ba8 Merge pull request #1136 from Taffyyy-ops/fix/audio-config-scan-search
audio_config: search sparse markers efficiently (AUDIO-CONFIG-SCAN-SEARCH)
2026-11-29 15:37:57 +01:00
74f470347a Merge pull request #1124 from Taffyyy-ops/fix/boot-trace-read-error
boot_trace: handle read errors during iteration (BOOT-TRACE-READ-ERROR)
2026-11-29 15:37:47 +01:00
a58d22fe2e Merge upstream ProjectLeonida/mandy main (ddfe24fba) into fix/rendering-correctness 2026-11-29 09:37:37 -05:00
6233946833 Merge pull request #1119 from Taffyyy-ops/fix/gdk-table-shape
gdk_runtime_calls: validate table lookup shapes (GDK-TABLE-SHAPE)
2026-11-29 15:37:37 +01:00
8843102027 Merge pull request #1115 from Taffyyy-ops/fix/d3d12-trace-sequence-limit
boot_trace: skip unparseable D3D12 sequence fields (D3D12-TRACE-SEQUENCE-LIMIT)
2026-11-29 15:37:27 +01:00
f605dfa54c Merge pull request #1060 from sodove/test/w64g-reference-default
Compare tier C references against a verified 32-wide draw (TEST-W64G-REF-DEFAULT)
2026-11-29 15:37:17 +01: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
91b7d73723 Merge pull request #1 from sodove/br/fix-dynamic-r32-uint
Preserve all 32 bits in dynamic R32_UINT loads
2026-11-29 15:29:11 +01:00
df5780ab51 d3d12: LEONIDA_WINDOWS_BAR_MB says once that it does nothing without resizable BAR (D3D12-BAR-WINDOWS-WARNING)
Title memory windows can only go to card memory the CPU maps when the card
has GPU upload heaps (resizable BAR, and a system and driver that offer it).
Without them the launcher still set 3072 on PCs under 48 GB of RAM and printed
"up to 3 GB", and every window asked the card's budget (two
QueryVideoMemoryInfo calls) before finding out the heap was not there.

window_mapped_for now checks for that memory first and logs once that the cap
does nothing. The launcher's line says the cap needs resizable BAR, and its
header and the README give the real default (under 48 GB of RAM, a card of
6 GB or more) instead of "under 24 GB".
2026-11-29 15:28:55 +01:00
91bab934d7 Merge pull request #835 from TheGeogeo/test/windows-known-folders-partial
tests: cover partial Windows known-folder results (TEST-WINDOWS-KNOWN-FOLDERS)
2026-11-29 15:27:11 +01:00
99c11d5827 Merge pull request #2215 from whoalin1/runtime-incremental-no-reloc-fixtures
runtime: link no-relocation fixtures without incremental linking
2026-11-29 15:27:02 +01:00
aec1623df8 Merge pull request #2605 from Mby159/fix/d3d12-hle-title-pointer-alignment
d3d12/hle: read the title's own buffers unaligned in ffx and xgameruntime
2026-11-29 15:26:52 +01:00
d8f6be3234 Merge pull request #2009 from IlyassRS3/perf/rt-uav-clear-fast-pack-and-tests
runtime: speed up uav_clear format lookup and channel pack/unpack with unit tests (RT-UAV-CLEAR-FAST-PACK-AND-UNIT-TESTS)
2026-11-29 15:26:43 +01:00
8c527753cb Merge pull request #2309 from narekshaghoyandev/ubiq-indirect-draw-stats-guards
indirect_draw_stats: guard null FILE* in report and out-of-range Event in note/skip
2026-11-29 15:26:30 +01:00
503831b2cb Merge pull request #2310 from narekshaghoyandev/ubiq-queue-families-slot-max
queue_families: select earliest slot in pick_queue_slot when all slots are UINT32_MAX
2026-11-29 15:26:21 +01:00
43d2d37c7c Merge pull request #2331 from narekshaghoyandev/ubiq-title-image-census-guards
d3d12_title_image_census: guard null entries/resources and use stable_sort
2026-11-29 15:26:09 +01:00
e18c786017 Merge pull request #2336 from narekshaghoyandev/ubiq-pipeline-wait-window
pipeline_wait: guard non-positive window and signed subtraction overflow in title_submitting
2026-11-29 15:25:56 +01:00
8969b55559 Merge pull request #2313 from narekshaghoyandev/ubiq-dev-status-null-name
dev_status: guard nullptr in Builds::name()
2026-11-29 15:25:47 +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
091bfa8d4d d3d12/vulkan(r9a): fix pending_stream dword6 refill, gpu_owned eviction, COPY_CLIP, and sync slots 131/132 2026-11-29 09:25:40 -05:00
3b90604966 Preserve all 32 bits in dynamic R32_UINT loads 2026-11-29 19:25:16 +05:00
48ca87fa24 make_game: the plain stage logs show a command's output as decoded text, in the caller's encoding (MAKE-GAME-PLAIN-LOG)
PlainStageLogs passed a command's raw bytes to sys.stdout.buffer. A Windows console's buffer takes UTF-8, so
non-ASCII text a command wrote in its own code page showed U+FFFD on screen, where main's --no-tui (the command
inheriting the console) shows it right. Measured in a console with OEM 850 / ANSI 1252: a child writing cp850
"n\xc6o par\x83metro" showed "n\ufffdo par\ufffdmetro".

- run() decodes the output once as it arrives (an incremental decoder, so a character split between two reads
  stays whole) and sends that text to the console, encoded for sys.stdout with errors="replace", and to the log;
- the encoding is the one the caller names with run(..., encoding=), else what a text-mode pipe decodes with, as
  on the board.

Three new tests: the caller's encoding on the console and in the log, a UTF-8 character split between reads, and
a character the console's code page lacks.
2026-11-29 11:23:16 -03:00
ddfe24fbad Merge pull request #2046 from abnalstlll-byte/feat/rt-xs-placed-depth-guards-and-tests
runtime: guard null out pointers, add inspection helpers and unit tests for PlacedDepthTextures (RT-XS-PLACED-DEPTH-GUARDS-AND-TESTS)
2026-11-29 15:14:56 +01:00
d3418c61d7 Merge pull request #2205 from whoalin1/compare-unexpected-exit2
conformance compare: harden crash and image input error handling
2026-11-29 15:13:32 +01:00
9bb67cb537 Merge pull request #987 from TheGeogeo/fix/semantic-mutants-zero-test-baseline
semantic_mutants: reject zero-test baselines (MUTANTS-ZERO-TEST-BASELINE)
2026-11-29 15:09:42 +01: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
3d49d31cba Merge pull request #2258 from kirigayakazima/fix/gamedata-blobs-safety
gamedata_blobs: fix unshipped count, index type checks, and atomic JSON
2026-11-29 15:09:20 +01:00
b696c243c3 Merge pull request #2203 from whoalin1/waves-arg-exit2
tools: validate numeric scan/probe arguments
2026-11-29 15:08:55 +01:00
51d343b861 Merge pull request #2043 from alexandersato0830/codex/shader-library-utf8-module-paths
Use UTF-8 for shader library module filenames (SHADER-LIBRARY-UTF8-MODULE-PATHS)
2026-11-29 14:21:11 +01:00
24d89be173 make_game: a run without the LEONIDA board still writes <work>/logs/<stage>.log (MAKE-GAME-PLAIN-LOG)
Only the board wrote the stage logs, so a build with --no-tui (or with stdout redirected) left nothing in
<work>/logs to read afterwards. PlainStageLogs now covers that case while the build stages run:

- log() and fail() lines go to the console as before and to the running stage's log;
- a command run() starts for a build stage has its stdout and stderr through one pipe: every byte goes on to
  the console as it arrives (a \r progress line still redraws) and every \r- or \n-ended piece to the stage's
  log, the same split the board uses. The child keeps the console, so Ctrl+C reaches it as before; on Ctrl+C it
  gets 0.25 s to stop and is then killed, as subprocess.run does;
- a caller that sets its own pipes, and commands outside a build stage, keep subprocess.run;
- a stage's file is opened with its first line; an unwritable folder gives one note on stderr and the build
  goes on without the logs.

The module docstring and the --no-tui help say where the logs are in both modes.
tests/test_make_game_plain_logs.py covers the cases above with real child processes.
2026-11-29 10:16:57 -03:00
89e3293375 bink_index: ask report_paths for the report-path guard 2026-11-29 14:16:15 +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
db567419fa Merge origin/main into carry/pr-2029
d3d12_xs_alloc_size: the PR's single-pass console_placement with main's title_descs/title_layout and console_unordered_access_size added to the per-description overrides; CMakeLists: xs_alloc_size_test and appnotify_test both kept.

Co-authored-by: Ilyass Roussi <76879547+IlyassRS3@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:31 +01:00
2d292240e8 Merge origin/main into carry/pr-2016
CMakeLists: value_write_sink_test (PR) after main's console_heap_slot_records and shadow_keep tests (main renamed console_heap_vsharp_slots).

Co-authored-by: abnalstlll-byte <284980532+abnalstlll-byte@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:29 +01: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
3beeb56bfb Merge origin/main into carry/pr-2031
submit_phases: main's nested-phase Scope kept; the PR's skip now applies only when nothing reads the times (timing_wanted(): period 0 and LEONIDA_DEV_OVERLAY not 1).

Co-authored-by: Ilyass Roussi <76879547+IlyassRS3@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:28 +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
ca1c246a12 Merge origin/main into carry/pr-2085
geometry_views: main's written_vas_-only refresh kept; run_needed() looks each tile up again in tiles_ and skips dead views (no Tile* pointers, as qhukz13 asked). Test: main's tests 5-16 plus the PR's two as 17-18.

Co-authored-by: BubsMcgee <203599835+BubsMcgee@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:24 +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
3535eb5c4b Merge pull request #1910 from IlyassRS3/fix/rt-vk-helper-proc-cache-and-guards 2026-11-29 13:44:58 +01:00
44ddf9b052 Merge pull request #1600 from thiefyzheng/fix/test-tempdir-stripped-env 2026-11-29 13:44:40 +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
ee27e87196 render-target reserve: one lock over the settle record (opt-in branch only)
merzleckeier (#2589, 11:55): targets_room_kept read the growth record
(GREW) and the given-up flag, computed, then stored them back as separate
atomics. A caller delayed between its read and its store put back an older
record: with synchronized threads the reserve kept 0 MiB where 709 were
due. Not seen in game. The record, the flag, and the targets' bytes and
the time they are compared with are now read, computed and stored under
one Mutex, so no store can go back in time. The default (setting 0)
returns before the lock and stays lock-free.

Tested: cargo check -p leonida-gpu --target x86_64-pc-windows-gnu (MinGW)
passes with the same 19 warnings as before; the function is Windows-only
and was not run. Not done: a threaded test of the race.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDMsHtPdJ5kt8t7A5i2fzu
2026-11-29 12:23:45 +00:00