Commit Graph

9534 Commits

Author SHA1 Message Date
8e1d4000a8 d3d12: -More's values in the menu report, -Dlss replaces the lowest scale, a tidier menu file write
Review of 3a3f38325 (aslan2142):

- The values -More sets were not in what the menu was compared with. A replaced value printed "-> (unset)", a value
  equal to the menu's was reported as replaced, and an empty menu value set by -More was not reported. They are
  overlaid now.
- -Dlss now also sets LEONIDA_RENDER_SCALE_MIN and LEONIDA_OUTPUT in $switchSettings, as -Resolution and -Lowest do,
  so a typed DLSS mode replaces a saved lowest scale.
- play-d3d12.ps1's -SmoothMotion is named -SmoothMotion/-NoSmoothMotion in the report, as -SeriesS is.
- The menu file is not read again to tell whether a value left it. After a failed write, only a temporary file this
  start wrote is removed; whatever already stood at that name is left alone.

Tests: 14. With the launcher of 3a3f38325, 4 fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:48:08 -03:00
3a3f383250 d3d12: a typed frame generation replaces the menu's other one; the restart replays -NoFrameGen
Review of cf15c2c6e (merzleckeier, full launcher with the final start mocked):

- A saved LEONIDA_FSR_FRAMEGEN=1 undid a typed -FrameGen 2. The launcher keeps FSR 3's frame generation when both are
  set and drops DLSS's. The two are one choice, so -FrameGen now also sets LEONIDA_FSR_FRAMEGEN and -FsrFrameGen also
  sets LEONIDA_FRAME_GEN in $switchSettings. A typed one replaces the menu's other.
- LEONIDA_MENU_ARGS left -NoFrameGen out, as main does, so SAVE AND RESTART turned frame generation on. It is
  replayed now.

Tests: 12 (two new). With the launcher of cf15c2c6e, the two new ones fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:09:20 -03:00
9b7674d643 Fix post-merge CI regressions in wave_diff, x64_recomp, and piecewise_parse 2026-12-01 10:54:03 -05:00
7ea14a36b2 Merge pull request #2438 from timbot103/shader-nvvm-mubuf-offset-fit
rdna2spirv: check high 32 bits for buffer offset fit to avoid NVVM crash (SHADER-NVVM-MUBUF-OFFSET-FIT)
2026-12-01 16:22:24 +01:00
66e2262b2b Merge pull request #2388 from syfyra/fix/restofworld-index-text-sample
restofworld_index: judge text on the same 512 bytes in an archive (RESTOFWORLD-INDEX-TEXT-SAMPLE)
2026-12-01 16:22:12 +01:00
4128da7fba Merge pull request #2384 from syfyra/fix/awc-names-family-suffix-number
awc_names: number family members by their suffix (AWC-NAMES-FAMILY-SUFFIX-NUMBER)
2026-12-01 16:21:47 +01:00
df3eb2fa71 Merge pull request #2382 from syfyra/fix/world-archetypes-folder-continuation
world_archetypes: read a carved resource's continuation file too (WORLD-ARCHETYPES-FOLDER-CONTINUATION)
2026-12-01 16:21:34 +01:00
1c194ebe8e Merge pull request #2371 from syfyra/fix/page-index-directory-not-continuation
page_index: a directory page is never a continuation (PAGE-INDEX-DIRECTORY-NOT-CONTINUATION)
2026-12-01 16:21:21 +01:00
0f557b12a4 Merge pull request #2360 from ShotTechOp/fix/bitcmp64-mixed-and-special-srcs
rdna2spirv: handle mixed mask pairs, wave32 VCC, and mask bit indices in s_bitcmp0/1_b32/b64 (SHADER-BITCMP64-MIXED-AND-SPECIAL-SRCS)
2026-12-01 16:21:09 +01:00
a53be6d9b0 Merge pull request #2373 from syfyra/fix/page-index-tiny-continuation
page_index: take a continuation shorter than 64 bytes (PAGE-INDEX-TINY-CONTINUATION)
2026-12-01 16:20:45 +01:00
580634ac4b Merge pull request #2367 from budanga/fix/compute-worker-spawn-quota
rdna2spirv: start a tool again when a Windows job refuses it with ERROR_NOT_ENOUGH_QUOTA (COMPUTE-WORKER-SPAWN-QUOTA)
2026-12-01 16:20:22 +01:00
f3529eeb0c Merge pull request #2355 from ShotTechOp/fix/bitset-mask-and-dst
rdna2spirv, lane_masks: handle lane-mask destinations and sources in s_bitset0/1_b32 (SHADER-BITSET32-MASK-AND-DST)
2026-12-01 16:19:57 +01:00
63a569f904 Merge pull request #2339 from syfyra/fix/studio-stats-labels-i18n
studio: show the EU strings the page already defines (STUDIO-EU-STRINGS)
2026-12-01 16:19:43 +01:00
ec232cad48 Merge pull request #2338 from syfyra/feat/viewer-overview-map
viewer: an overview map of the world's chunks, with click to fly there (VIEWER-OVERVIEW-MAP)
2026-12-01 16:19:30 +01:00
72f278dd56 Merge pull request #2335 from syfyra/feat/studio-model-details
studio: list the shown model's size, meshes, materials and textures (STUDIO-MODEL-DETAILS)
2026-12-01 16:19:06 +01:00
13e0f40b61 Merge pull request #2329 from syfyra/feat/viewer-follow-cam-link
viewer: follow a camera link opened in the open page (VIEWER-FOLLOW-CAM-LINK)
2026-12-01 16:18:54 +01:00
e88bb68f11 Merge pull request #2325 from syfyra/fix/calibrated-texture-npot-dds
calibrated_texture: crop NPOT mips to the DDS grid (CALIBRATED-TEXTURE-NPOT-DDS)
2026-12-01 16:18:42 +01:00
e78ca1ee90 Merge pull request #2318 from syfyra/fix/inline-scan-copy-before-load
inline_scan: follow a list copied before the cursor load (INLINE-SCAN-COPY-BEFORE-LOAD)
2026-12-01 16:18:30 +01:00
5addc0128b Merge pull request #2243 from syfyra/fix/viewer-slow-key
viewer: slow flight on C instead of Ctrl (VIEWER-SLOW-KEY-CTRL-W)
2026-12-01 16:18:16 +01:00
7aa255ab8e Merge pull request #2237 from syfyra/perf/translator-piecewise-parse
tests: parse the translator in pieces: 7 s -> 1 s per uncached import, 60 s -> 17 s in five standalone tests (TEST-TRANSLATOR-PIECEWISE-PARSE)
2026-12-01 16:18:04 +01:00
d819ad07c5 Merge pull request #2235 from syfyra/fix/text-tables-walk-order
text_tables: read a directory source's subfolders in name order (TEXT-TABLES-WALK-ORDER)
2026-12-01 16:17:54 +01:00
a43262a139 Merge pull request #2185 from Tauwni/fix/make-game-pick-macos-osascript
make_game --pick: on macOS, the folder dialog is osascript's choose folder, so it needs no Tkinter (MAKE-GAME-PICK-MACOS)
2026-12-01 16:17:33 +01:00
96befbdd3e Merge pull request #2181 from Tauwni/fix/mods-gui-tkinter-hint-macos
leonida_mods gui: on macOS, the missing-Tkinter hint names Homebrew's python-tk@<version> (MODS-GUI-TKINTER-HINT-MACOS)
2026-12-01 16:17:21 +01:00
674be6b874 Merge pull request #2135 from Anonymous78e/test/semantic-timeout-quick-load
tests: the parallel timeout case no longer times out its healthy modules on a loaded CPU (TEST-SEMANTIC-TIMEOUT-QUICK-LOAD)
2026-12-01 16:17:09 +01:00
cfbe765e61 Merge pull request #2099 from BubsMcgee/rt-image-get-lod-cube
rdna2spirv: translate image_get_lod on a cube (IMAGE-GET-LOD-CUBE)
2026-12-01 16:16:57 +01:00
e6140dee01 Merge pull request #1809 from ShotTechOp/fix/wave-diff-ref-validation
wave_diff: validate cross-lane/mask operands, EXEC=0 dsts, DS offsets, and immutability (WAVE-DIFF-REF-VALIDATION)
2026-12-01 16:16:44 +01:00
4add048803 Merge pull request #1516 from milk4sale/tests/mutations-one-copy
tests: test_mutations copies tools/ once and runs only the test each mutation must break (TEST-MUTATIONS-COST)
2026-12-01 16:16:31 +01:00
febdc0e0ee Merge pull request #1452 from Dashhhhhhhh/fix/world-interior-names-case-inside
world_interior_names: refuse a report inside another case of the carve folder (WORLD-INTERIOR-NAMES-CASE-INSIDE)
2026-12-01 16:16:17 +01:00
b5f2025305 Merge pull request #1439 from Anonymous78e/test/cmake-batch-cleanup
tests: a locked recorder.exe no longer hides the cmake batch case's result (TEST-CMAKE-BATCH-CLEANUP)
2026-12-01 16:15:56 +01:00
a11c4fbf34 Merge pull request #1428 from IlyassRS3/fix/x64-recomp-short-xchg-movnti
x64_recomp: fix short-form xchg (0x91..0x97) and movnti (0F C3) widths/emission (X64-RECOMP-SHORT-XCHG-MOVNTI)
2026-12-01 16:15:43 +01:00
9e5d907e36 Merge pull request #1415 from Tortoche/test-5237
OLD-5237: rdna2spirv: the PS FRONT_FACE VGPR holds 0xffffffff / 0 (SHADER-892)
2026-12-01 16:15:32 +01:00
7813890589 Merge pull request #1372 from Mykolas009/build/shader-resume-identity
make_game: a saved translated index that names a shader not carved here is translated again (BUILD-SHADER-RESUME-IDENTITY)
2026-12-01 16:15:21 +01:00
bc7f99f2b3 Merge pull request #1329 from IlyassRS3/feat/x64-recomp-adcsbb-narrow
x64_recomp: add 8/16-bit adc/sbb, fix Asm.csinv encoding, sign-extend imm, and stash AF (X64-RECOMP-ADCSBB-NARROW)
2026-12-01 16:15:10 +01:00
f0c4fe0b43 Merge pull request #1253 from NinsonD/feat/public-github-metadata-export
Feat/public GitHub metadata export
2026-12-01 16:14:46 +01:00
e9208863de Merge pull request #979 from OlaiFG7/carry/old-9856-mc-command-pathext
mc_command: PATHEXT fallback for extensionless paths with spaces (OLD-9856)
2026-12-01 16:14:09 +01:00
67176dd526 Merge pull request #137 from ProjectLeonida/old-pr/9868
rdna2spirv: keep NaN-pattern constants out of float-typed selects in image_bvh (#6623)
2026-12-01 16:13:34 +01:00
1bfd5e7844 Merge pull request #95 from ProjectLeonida/old-pr/9827
rdna2spirv: guard image_bvh PhysicalStorageBuffer loads on active EXEC lanes
2026-12-01 16:13:23 +01:00
d1cd2cef65 Merge pull request #57 from ProjectLeonida/old-pr/9779
tools: --shard balances by file size, so the parallel stage waits for nobody (output byte-identical)
2026-12-01 16:13:11 +01:00
88a9f133e7 Merge pull request #861 from trigger337/fix/shader-disasm-stage-cleanup
shader_disasm: restore write mode before unlink on replace failure and publish mode (SHADER-DISASM-STAGE-CLEANUP)
2026-12-01 16:05:17 +01:00
8edf0c8429 Verify explicit motion-blur forwarding and document Series X scales 2026-12-01 15:57:57 +01:00
edf7d01f8c Merge pull request #1169 from Taffyyy-ops/perf/anim-rigs-join-index
anim_rigs: index cross-dictionary joins (ANIM-RIGS-JOIN-INDEX)
2026-12-01 15:55:23 +01:00
182746f038 Merge pull request #2189 from vinceychu/hw-image-load-pck
image_fuzz: image_load_pck / image_load_pck_sgn on the hardware oracle, measured on RDNA2 (HW-IMAGE-LOAD-PCK)
2026-12-01 15:53:45 +01:00
52e1c837b2 Merge pull request #1120 from kett1m/x64-recomp-vzeroupper
x64_recomp: vzeroupper is three bytes, not four (X64-RECOMP-VZEROUPPER-NO-MODRM)
2026-12-01 15:53:31 +01:00
214f5a78e9 Merge pull request #895 from trigger337/fix/manifest-stage-cleanup
manifest: restore write mode before unlink on replace failure and publish mode (MANIFEST-STAGE-CLEANUP)
2026-12-01 15:53:16 +01:00
87e6a53616 Merge pull request #881 from trigger337/fix/mesh-compute-vs-stage-cleanup
mesh_compute_vs: restore write mode before unlink on replace failure and publish mode (MESH-COMPUTE-VS-STAGE-CLEANUP)
2026-12-01 15:53:01 +01:00
04694f516c Merge pull request #875 from trigger337/fix/bary-fallback-gs-stage-cleanup
bary_fallback_gs: restore write mode before unlink on replace failure and publish mode (BARY-FALLBACK-GS-STAGE-CLEANUP)
2026-12-01 15:52:48 +01:00
e2a31342eb Merge pull request #872 from Tortoche/feat/bcpack-bc7-rans
tests: adversarial stress and mutational fuzzing suite for BCPack rANS decompressor
2026-12-01 15:52:35 +01:00
098f7ff761 rdna2spirv: guard v_readfirstlane in --mesh-native-wave32 and lower --spirv-opt SSA threshold to 512 KiB
- Exclude v_readfirstlane from --mesh-native-wave32 until per-use uniformity
  analysis proves the source wave-uniform (with ms_native_readfirstlane.asm
  and test_mesh_native_wave32.py regression test + docs/design.md update).
- Lower SPIRV_OPT_LARGE_BYTES from 750 KiB to 512 KiB so library/lib_cs_03245
  and siblings use the safe SSA pass set instead of --scalar-replacement=0
  (avoiding NVIDIA 590.48.01 compiler SIGSEGV during warmup).

AI-assisted.
2026-12-01 16:38:32 +02:00
4e483f7ce0 rdna2spirv: TO_DATA merges, --compute-serial-waves, --mesh-native-wave32, --spirv-opt
On top of PR #2566 (8db8335d2), combines verified translator performance and
correctness improvements for NVIDIA Wave32 GPUs (tested on RTX 3090 24 GB,
driver 590.48.01):

- Cherry-pick PR #2501 lane_masks.insert_data_merges (TO_DATA) fixing
  lib_cs_03010 bit-scanning loops (91-370 ms/call -> < 2.5 ms/frame).
- Add --compute-serial-waves for >64-thread barrier/LDS/atomic-free compute
  shaders (lib_cs_00977 + lib_cs_00986: 160 ms/frame -> < 2.4 ms/frame) while
  preserving unmodified PR #2566 d88b2deea VulkanMemoryModel coherency.
- Add --mesh-native-wave32 for strictly partition-invariant mesh shaders
  (9,116 / 9,282 dxbc MS shaders), running all threads natively in 1 Wave32
  pass with zero %x_buf LDS/barriers (-13% to -35% on hot mesh shaders).
- Add --spirv-opt (-O below 750 KiB, safe SSA pass set at >= 750 KiB to avoid
  NVIDIA 590.48.01 --scalar-replacement=0 compiler segfaults, with automatic
  fallback + spirv-val check).

AI-assisted. Verified with semantic tests and retail boots on RTX 3090 (590.48.01).
2026-12-01 16:37:33 +02:00
cf15c2c6ed d3d12: a typed switch wins over the F1 menu, not a value that changed (D3D12-MENU-LAST-CHOICE-WINS)
Review of the first version: a value that differs from the last start's command line was taken for the user's new
choice. That lost an explicit flag on the first start after an upgrade, never let the same flag typed again win, and
dropped a menu value the command line never mentioned when leonida-launch.txt lacked the key. The menu file was also
rewritten before the history, so a failed history write had already lost a saved choice.

Now the rule follows what the user typed:
- A switch typed for this start wins over the menu's saved value of each setting it makes. The menu file drops that
  value, so F1 shows the command line's. scripts\play-d3d12.ps1 passes the switches typed there as -Typed, so its
  Series X default and -Lowest 1080 leave the menu's choice standing. A start by hand counts its own switches, and
  -More wins like a typed switch.
- Every other setting keeps the menu's value.
- The menu's SAVE AND RESTART adds -MenuRestart to the switches it replays (LEONIDA_MENU_ARGS), so there the menu's
  values, saved after those switches, win.

leonida-launch.txt is gone. The menu file is written to a temporary file and moved over the old one, and only when a
value leaves it. If that fails, the start runs with the command line's values and the file stays whole.

Tests: 10 cases, among them the same switch typed again, an untyped default, a setting no switch makes, the restart,
a start by hand, -More and a menu file that cannot be written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:20:54 -03:00