Commit Graph

4974 Commits

Author SHA1 Message Date
809d1869af Merge pull request #657 from aslan2142/root-constants-zero
OLD-8904: restore old upstream PR 8904 - root_signature: accept root constants of 0 values, as the host does (D3D-942)
2026-11-25 23:57:31 +01:00
04221201c3 Merge pull request #748 from aslan2142/build1390-bvh4-parent-table
OLD-7640: restore old upstream PR 7640 - docs/bvh.md: the BVH4 parent table's start and extent (BUILD-1390)
2026-11-25 23:29:16 +01:00
45129e6bc0 Merge pull request #735 from aslan2142/world-build-png-budget
OLD-9481: restore old upstream PR 9481 - world_build: drop a staged chunk PNG once no later chunk uses it
2026-11-25 23:28:08 +01:00
3daeb1e111 Merge pull request #717 from aslan2142/resource-pointer-width
OLD-7482: restore old upstream PR 7482 - instance_lists, world_interior_names, world_lights_paths: read the block number from 20 bits
2026-11-25 23:25:17 +01:00
581ddba5d2 Merge pull request #714 from aslan2142/gamedata-spatial-grid-region3
OLD-7263: restore old upstream PR 7263 - gamedata_blobs: Region 1's lowest cell offset decides where Region 3 starts
2026-11-25 23:24:21 +01:00
7359f21b2b Merge pull request #697 from aslan2142/rt566-d3d12-device-calls
OLD-7998: restore old upstream PR 7998 - d3d12_device_calls: count the ID3D12Device slots the retail executable calls, from the file alone
2026-11-25 23:22:35 +01:00
83f791ae4d Merge pull request #648 from aslan2142/rtti-scan-last-slot
OLD-7481: restore old upstream PR 7481 - rtti_scan: scan the last aligned qword of a section for a COL pointer
2026-11-25 23:21:45 +01:00
b8c44ce8ec Merge pull request #649 from aslan2142/pe-inspect-rt-version
OLD-7282: restore old upstream PR 7282 - pe_inspect: read the resource directory and the RT_VERSION block without its strings
2026-11-25 23:20:51 +01:00
b4ae8916ef Merge pull request #653 from aslan2142/pe-inspect-linux-classes
OLD-7084: restore old upstream PR 7084 - pe_inspect: classify system DLLs on Linux through the Wine prefix, bundled names without case
2026-11-25 23:19:58 +01:00
392dda8f06 Merge pull request #833 from aslan2142/wave64-partial-wave-zero
OLD-7450: restore old upstream PR 7450 - wave64 emulate: a cross-lane read of a missing lane in a partial wave gives 0
2026-11-25 23:19:00 +01:00
ca9e45dbd1 Merge main into pe-inspect-linux-classes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:11:38 -05:00
b8c925002c pe_inspect: advapi32.dll is host-owned too, as in owns_dll on main
main (273b3bdf9) added advapi32.dll to owns_dll's host list in
runtime/shims/registry.cpp, so test_runtime_shim_dlls_follow_the_registry
failed after merging main. Add it to _SHIM_HOST_DLLS in the same order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:52:07 -05:00
865e2d7912 Merge commit 'refs/fix2/main' into fix2-653 2026-11-25 16:51:53 -05:00
244e89f39c root_sig_contract: accept root constants of 0 values, as the runtime packer does
tools/root_sig_contract.py says its packing mirrors
runtime/src/root_signature.{h,cpp}, but it still refused a constant
parameter with count 0, so after this branch it rejected a signature the
runtime accepts. Accept count >= 0; a zero count adds no dwords and its
neighbours pack as if it were absent, in both the s0 and the console
layout. Raised in review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:40:50 -05:00
1fe5072afb Merge pull request #847 from KernelSmoker/kernelsmoker/x64-recomp-primary-90
x64_recomp: decode opcode 0x90 forms (X64-RECOMP-PRIMARY-90)
2026-11-25 22:39:49 +01: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
ab2fb71cbe Merge pull request #1507 from whoalin1/crosslane-pctail-ubo
crosslane_fuzz: --pc-tail-ubo for 128-byte push-constant GPUs
2026-11-25 22:32:59 +01:00
0079b5ddff Merge pull request #637 from jarvixaiassistant-glitch/fix/decode-mac-legacy-target
rdna2_decode: decode VOP2 0x06 and VOP3 0x106 as v_mac_legacy_f32 on gfx101* (DECODE-MAC-LEGACY-TARGET)
2026-11-25 22:22:03 +01:00
2bfcb4fe71 Merge pull request #633 from jarvixaiassistant-glitch/fix/decode-mimg-llvm-parity
rdna2_decode: align MIMG addr, atomic TFE/cmpswap, and r128 widths with LLVM (DECODE-MIMG-PARITY)
2026-11-25 22:21:14 +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
f2fb557027 Merge pull request #729 from promise-ssss/feat/mods-conflict-reporting
mods: report swap conflicts in JSON and add check --strict (MODS-CONFLICT-REPORTING)
2026-11-25 22:05:45 +01:00
70a3d519f5 Merge pull request #589 from trigger337/fix/probe-moderound-oracle-close
tools: close hardware oracle in mode_round_probe (PROBE-MODEROUND-ORACLE-CLOSE)
2026-11-25 22:03:47 +01:00
ac50c414ff Merge pull request #587 from trigger337/fix/probe-f16widen-oracle-close
tools: close hardware oracle in f16_widen_probe (PROBE-F16WIDEN-ORACLE-CLOSE)
2026-11-25 22:02:51 +01:00
706eceaf02 crosslane_fuzz: --pc-tail-ubo for 128-byte push constant GPUs
On GPUs whose push constant block is 128 bytes (AMD iGPUs) every
rdna2spirv.py translation fails with "need 144 push constant bytes"
unless --pc-tail-ubo moves the tail to a UBO, and vk_compute_test then
needs LEONIDA_PC_TAIL_UBO=1 to bind the same layout -- the same pairing
lds_fuzz.py, valu_fuzz.py and image_fuzz.py already implement. This
adds the flag (also enabled by LEONIDA_PC_TAIL_UBO=1) and forwards it
to both the translator and the harness, including the --minimize path.

AI-assisted. Tested: tests/test_crosslane_fuzz.py (76 tests), and a
GPU spot-check on the AMD iGPU (Vulkan, validation on): 8 programs,
wave32 native + wave64 emulate, all match with no harness errors.

Co-Authored-By: Devin <noreply@cognition.ai>
2026-11-25 22:59:07 +02:00
db1a22d290 Merge pull request #585 from trigger337/fix/probe-bufferstore-oracle-close
tools: close hardware oracle in buffer_store_probe (PROBE-BUFFERSTORE-ORACLE-CLOSE)
2026-11-25 20:49:41 +01:00
0afcf9b598 Merge pull request #570 from Managilvosh/fix-calibrated-texture-no-clobber
calibrated_texture: atomic no-clobber export with MoveFileExW and cleanup (CALIBRATED-TEXTURE-NO-CLOBBER)
2026-11-25 20:47:30 +01:00
c606788bc0 Merge pull request #566 from JiyouProt/codex/bink-no-cache
bink_play: honor --no-cache without persistent storage (BINK-NO-CACHE)
2026-11-25 20:46:30 +01:00
8c40e3b7af Merge pull request #490 from sodove/fix/ntfs-report-path-case
report_paths: respect case-sensitive Windows directories (OLD-9412)
2026-11-25 20:45:33 +01:00
721a3b85ae Merge main into wave64-partial-wave-zero
Conflict in scripts/run_gpu_tests.py: the dump-test name list gained
cs_w64x_cmp_sdst on main and cs_w64x_partial_swizzle here; both are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:37:20 -05: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
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
b9320a118d Merge pull request #1812 from kirigayakazima/fix/bcpack-bptc-safety
tools: harden bcpack_tables_bptc.py section validation, bounds and file cache
2026-11-25 18:36:10 +01:00
360c728bde Merge pull request #1793 from kirigayakazima/fix/ps-helper-probe-safety
tools: guard ps_helper_probe.py empty coverage and atomic --json writes
2026-11-25 18:35:17 +01:00
fd33a31a22 Merge pull request #1815 from kirigayakazima/fix/script-qtable-atomic-json
tools: make script_qtable.py --json writes atomic and validate paths and hex stems
2026-11-25 18:34:28 +01:00
1f62a9c368 Merge pull request #1817 from kirigayakazima/fix/gamedata-sps1-atomic-json
tools: make gamedata_sps1.py --json writes atomic, validate paths and avoid duplicate index read
2026-11-25 18:33:39 +01:00
a8266e3f8a Merge pull request #1852 from kirigayakazima/fix/int-hw-probe-safety
tools/int_hw_probe: write --json atomically and reject trailing-separator paths
2026-11-25 18:32:42 +01:00
082ebe4406 Merge pull request #1853 from kirigayakazima/fix/ab-control-flow-safety
tools/ab_control_flow: handle UTF-8-SIG/CRLF inputs, subprocess encoding and atomic outcomes.tsv
2026-11-25 18:31:39 +01:00
b0e11f234a Merge pull request #1807 from kirigayakazima/fix/pal-stages-safety
tools: handle corrupt XBCH zlib, case-insensitive extensions and index errors in pal_stages.py
2026-11-25 18:29:48 +01: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
3a84ae7aa8 tools/ab_control_flow: handle UTF-8-SIG/CRLF inputs, subprocess encoding and atomic outcomes.tsv 2026-11-25 21:10:56 +08:00
71c86830f5 tools/int_hw_probe: write --json atomically and reject trailing-separator paths 2026-11-25 21:08:25 +08:00
6e85823da4 gamedata_reader: preserve empty polymorphic objects 2026-11-25 16:05:38 +03: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
def89c3aa5 tools: make gamedata_sps1.py --json writes atomic, validate paths and avoid duplicate index read 2026-11-25 20:29:24 +08:00
59eadb0be5 tools: make script_qtable.py --json writes atomic and validate paths and hex stems 2026-11-25 20:27:21 +08:00
81e34a5695 tools: harden bcpack_tables_bptc.py section validation, bounds and file cache 2026-11-25 20:25:15 +08:00
abe47df11e tools: handle corrupt XBCH zlib, case-insensitive extensions and index errors in pal_stages.py 2026-11-25 20:21:02 +08:00
a759e1ebc6 tools: guard ps_helper_probe.py empty coverage and atomic --json writes 2026-11-25 20:14:04 +08:00
fb3552fdde rdna2spirv: apply src0 float modifiers after bound_ctrl zero selection (SHADER-DPP-NEG-BOUND-CTRL)
In Gen.dpp_insn, apply src0 input float modifiers (neg/abs) after the bound_ctrl
zero selection rather than before the lane shuffle. On RDNA3 hardware (measured
by @mcpeacebir-lang on an RX 7800 XT in HW-DPP-NEG-INVALID-LANE), reading an invalid
lane under bound_ctrl:1 with -src0 produces -0.0f (0x80000000) and with |src0| produces
+0.0f (0x00000000).

Adds semantic test tests/semantic/test_dpp_bound_ctrl_modifiers.py and updates
the DPP contract row in docs/design.md.

AI-assisted (Claude Code)
2026-11-25 14:55:33 +03:00