Commit Graph

6308 Commits

Author SHA1 Message Date
b696c243c3 Merge pull request #2203 from whoalin1/waves-arg-exit2
tools: validate numeric scan/probe arguments
2026-11-29 15:08:55 +01: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
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
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
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
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
85149ce1a7 conformance: harden unexpected input and crash paths
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-29 10:24:27 +00:00
6068ed561a conformance expect: report unreadable images as input errors 2026-11-29 10:24:27 +00:00
2dd72a4536 chain_check: name the UTF-8 reader read_utf8, not read_text
tests/test_text_encoding.py flagged tools/chain_check.py:230, 425 and 624
(DadaCap asked for this fix on #2231). The calls go to the file's own
helper, which opens with encoding="utf-8-sig", but the test takes any
call named read_text for pathlib's unpinned method. The helper is now
read_utf8; nothing else changes.

Tested: test_text_encoding.py names no chain_check line any more (its one
remaining failure, scripts/windows-boot/test_crash_monitor.py:37 and :90,
is red on main too); test_chain_check.py 24 passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDMsHtPdJ5kt8t7A5i2fzu
2026-11-29 09:50:25 +00:00
62ee572be5 Merge ProjectLeonida/mandy main into tools/chain-check 2026-11-29 09:49:48 +00:00
6d1b43911c Merge ProjectLeonida/mandy main into feat/picture-metrics
# Conflicts:
#	docs/README.md
2026-11-29 09:49:01 +00:00
18e0304d57 shader_disasm: use a per-run failed list in main() instead of shared FAILED 2026-11-29 09:45:11 +00:00
ccb3726df8 buffer_bounds_probe: reject non-numeric waves as a bad argument 2026-11-29 09:24:27 +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
9520fea3a5 Merge origin/main into #2130 (carry prep)
tools/bvh_tri_probe.py: PR's --kernel expansion, validate_json_path, family check and r.get('lane') kept with main's --write-kernels check, skipped-row count and skip note; write_report now writes through main's _write_text_atomic; the skipped count reads r.get("status") like the PR's r.get("lane").

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 09:41:09 +01:00
3431441615 Merge pull request #1274 from TheGeogeo/fix/dashboard-scrub-spaces
progress_dashboard: hide a whole drive path that contains spaces (DASH-SCRUB-SPACES)
2026-11-29 09:14:29 +01:00
3aee823016 Merge pull request #2512 from TheGeogeo/fix/assets-bcpack-strict-history
make_game assets: reuse local BCPack history on resume (ASSETS-BCPACK-STRICT-HISTORY)
2026-11-29 09:14:19 +01:00
ab4102efee fix(dstorage): preserve signed BC6H SF16 targets and average full multi-level footprint
- Thread signed=(format == 96) into Bc6hCalibrator.add_pool_chunk so signed
  BC6H_SF16 reference targets clamp to [-32768, 32767] instead of [0, 65535]
  and _eval_w_ops sign-extends and unquantizes candidates in signed space.
- Average the full [x0, x1) x [y0, y1) quadrant footprint across multi-level
  downsamples in _make_multilevel_quads_getter (caching per-4x4-block sums),
  eliminating single-phase column/row aliasing at 4+ mip levels.
- Add DXGI 96 negative-endpoint and 4-level alternating-column BC7 regression
  tests in tests/test_dstorage_multilevel_fit.py.
2026-11-28 20:56:33 -08:00
770f5e0e18 Merge remote-tracking branch 'origin/main' into work/dstorage-multilevel-bcpack-fit 2026-11-28 20:46:18 -08: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
cc302c75af Merge pull request #1622 from xel1uz/fix/tile-arg-guards
tile_probe: make an impossible --offset a usage error with exit 2
2026-11-29 04:37:46 +01:00
00dacaad73 Merge pull request #1746 from kirigayakazima/codex/glb-inspect-scene-roots
glb_inspect: show the default scene and named root nodes
2026-11-29 04:37:37 +01:00
aeed00351b Merge pull request #1750 from kirigayakazima/codex/batch-glb-output-name-collision
batch_glb: catch colliding output names before conversion
2026-11-29 04:37:28 +01:00
90efd60e12 Merge pull request #2590 from aegish-zagi/fix/stdout-guard-four-programs
tools/scripts: the four leftover __main__ blocks set errors=replace on stdout
2026-11-29 04:37:17 +01: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
f0f0c11b28 Merge current main and reconcile glb_inspect coverage 2026-11-29 11:02:08 +08:00
780c383905 Merge current main and reconcile batch_glb coverage 2026-11-29 11:02:03 +08:00
befe3aa137 d3d12_run_fps: an error of argparse's own is rewritten from fixed texts (TOOLS-D3D12-RUN-FPS)
From the review of 016554bef: `--json=<text>` and `--help=<text>` still came
back in the error ("ignored explicit argument '<text>'"). argparse raises
that for a known flag before parse_known_args returns, so counting unknown
arguments could not catch it.

The parser is now a subclass whose error() rewrites every message argparse
raises from a short list of fixed texts, with the option's own name where it
names one: "takes no value", "needs a value", the three texts of the tool's
own argument types, "a log is needed", and "not understood" for anything the
list does not know (another Python's wording, a check argparse gains later).
The tool's own errors go through fail(), unchanged. Nothing typed can reach
an error message by any path.

Test: python -I tests/test_d3d12_run_fps.py (22 tests). New: argparse's own
errors for --json=<marker>, --help=<marker>, bad --edges and --min-samples
values, an unknown flag and a missing log, with plain, quoted and spaced
markers; a message the list does not know; the fixed texts are the argument
types' own.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 02:25:07 +00:00
04f484006e Merge pull request #2143 from kevincommits/x64-recomp-qemu-unaligned
x64_recomp: the QEMU harness maps guest RAM as Normal memory, so unaligned accesses work (X64-RECOMP-QEMU-UNALIGNED)
2026-11-29 03:16:40 +01:00
25cf1aa4ec Merge pull request #2250 from kirigayakazima/codex/studio-dds-cube-face
studio: select cube faces for DDS previews and texels
2026-11-29 03:16:26 +01:00
035abbc54a psin_dialogue: put the tools directory on sys.path before importing psin_data (CI-PSIN-DIALOGUE-SIBLING-PATH) 2026-11-28 18:15:18 -08: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
0efc2bd43d Merge pull request #487 from kotekompotek/work/d3d12-guid-sites-gdk-json
d3d12_guid_sites: load known GDK runtime GUIDs from gdk_runtime_class…
2026-11-29 02:36:43 +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
23c4ca006c Merge pull request #917 from TuroYT/fix/ps-oracle-unavailable-exit
ps_oracle: exit 77 when the oracle becomes unavailable during run() (PS-ORACLE-UNAVAILABLE-EXIT)
2026-11-29 02:36:09 +01:00
a908ad77e2 Merge pull request #921 from narekshaghoyandev/ubiq-gamedata-xml-atomic-and-order
gamedata_xml: write CSV/JSON reports atomically and sort walk subdirs
2026-11-29 02:35:55 +01:00
ecb0a4a496 Merge pull request #949 from barkodr/fix/numpy-missing-message
swizzle_search, tex_mode_probe: say numpy is missing in one line, as tile_probe does
2026-11-29 02:35:37 +01:00