Commit Graph

5712 Commits

Author SHA1 Message Date
5d06e4793e Merge pull request #2967 from aznohonza/tools/cgroup-memory-peak
game_run_summary: record the run cgroup's memory peak
2026-12-02 00:07:43 +00:00
c37e311384 Merge main into #278: keep both new decode tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 23:13:03 +01:00
c4ca576150 Merge pull request #2910 from c0pperlane/doc-d3d12-vulkan-stale-status
docs/d3d12_vulkan.md: drop stale "not implemented" status for buffer SRVs, streams, mesh PSOs and WriteBufferImmediate (DOC-D3D12-VULKAN-STALE-STATUS)
2026-12-01 22:45:03 +01:00
7fbdf85110 Merge pull request #2913 from ProjectLeonida/ci/exclude-legacy-cpp-runtime-tests
ci: exclude deprecated legacy C++ runtime/ from automatic CI runs
2026-12-01 19:00:46 +01:00
dfce074a05 ci: exclude deprecated legacy C++ runtime/ from automatic CI runs 2026-12-01 12:43:58 -05:00
9f0d351cc8 Merge pull request #2880 from alpfilho/d3d12/menu-last-choice-wins
d3d12: the last choice wins between the command line and the F1 menu (D3D12-MENU-LAST-CHOICE-WINS)
2026-12-01 18:38:35 +01:00
d2a564b66a Merge pull request #2865 from azsekazvamdimitar/feat/rtx3090-vram-perf-and-translator
d3d12/vulkan + rdna2spirv: staged VRAM arena, DMA readback batching, parallel shadows, stream-pool fix & wave64 perf (RT-ARENA-DEVICE-LOCAL-STAGED)
2026-12-01 18:17:55 +01:00
a9c4995c5c docs: allow agents to manage PRs while keeping main push-protected
Clarify in docs/agent_collaboration.md, AGENTS.md, and CONTRIBUTING.md
that agents may open, change, merge, and close pull requests on separate
branches, while keeping the strict rule that nobody (human or agent)
ever pushes directly to main.
2026-12-01 11:37:19 -05:00
64ec184069 docs: prohibit direct pushes to main
Document clearly in CONTRIBUTING.md, AGENTS.md, and
docs/agent_collaboration.md that contributors, maintainers, and coding
agents must never push directly to main and must always use a separate
branch and pull request so every change goes through CI and review.
2026-12-01 11:27:57 -05:00
588496066f Merge pull request #2385 from syfyra/docs/awc-family-claim-rule
docs: two families claiming one AWC id, the larger keeps it (DOC-AWC-FAMILY-CLAIM-RULE)
2026-12-01 16:22:00 +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
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
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
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
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
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
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
20fb2cc182 Merge pull request #1140 from PierreEbele/linux-deps-installer
scripts: install the Linux prerequisites in one command (BUILD-LINUX-DEPS-INSTALLER)
2026-12-01 16:14:22 +01:00
57c57a2b97 Merge pull request #665 from LouisRiverstone/carry-old-9923
docs/design.md: one copy of each rule in the Global atomics row (OLD-9923)
2026-12-01 16:13:57 +01:00
2ad32c8fc8 Merge pull request #250 from ProjectLeonida/old-pr/9984
docs(models): remove duplicate material effect section (lines 653-737)
2026-12-01 16:13:46 +01:00
4a305d0666 d3d12/vulkan: bind/map staging before binding VRAM buffer & document LEONIDA_EXTERNAL_WINDOWS_MB 2026-12-01 17:04:33 +02: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
8ebe7cc2e8 d3d12/vulkan + make_game: ReBAR DMA readback, budgeted staged slabs, test fixes & CLI wiring 2026-12-01 16:40:36 +02: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
9d41505a44 d3d12/vulkan: staged VRAM arena, DMA readback batching, parallel shadows, stream-pool fix
On top of PR #2566 (8db8335d2), combines verified runtime performance and
correctness improvements for non-ReBAR Vulkan GPUs (tested on Linux / Wine /
RTX 3090 24 GB, BAR1 = 246 MiB, driver 590.48.01):

- Stage 4 GiB GPU address arena + overflow TitleBufferWindows slabs in
  DEVICE_LOCAL VRAM with HOST_VISIBLE staging mirrors (arena_staging.h,
  arena_staging_test.cpp).
- Fix startup glibc realloc() race by caching max_compute_shared_memory_size,
  sharing mutex-guarded VkPipelineLayouts, and eagerly loading pipeline_cache()
  during single-threaded Device construction.
- Stage 9a-1: batch retired arena + external window host readbacks into a
  single copy_buffers_sync() submission on the dedicated DMA copy queue
  (wb: 27.6 ms -> 2.35 ms/frame).
- Stage 9a-2: parallelize ShadowPages::refresh across 4 persistent threads
  via ShadowRefreshPool (shadows: 26.9 ms -> 10.2 ms/frame).
- Fix resolve_pool_memory() zeroing out root descriptors probed with
  kRootViewBytes (64 KiB) near the end of committed stream-pool blocks
  (stream pool unbacked: 131,072 -> 16-33, root view unbacked: 0).

AI-assisted. Verified with 151/151 portable Linux CTest passing and Windows
MSVC build + retail boots on RTX 3090 (590.48.01).
2026-12-01 16:37:00 +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
c8eea9466f d3d12: the last choice wins between the command line and the F1 menu (D3D12-MENU-LAST-CHOICE-WINS)
play-nvidia.ps1 applied leonida-settings.txt (what F1 saved) over the command line at every start. An empty value
there removed what the command line set, so a later -Resolution, -Dlss or -SeriesS was lost without a word.

Now leonida-launch.txt (git-ignored) keeps what the last start's command line made:
- A setting this command line makes otherwise than that start's did wins. The menu file drops its value, so F1
  shows and saves the new one.
- A setting it makes as before keeps the menu's value, the newer choice.
- Each start says which values came from the menu and which the command line replaced.
- A dry run writes neither file.

The F1 menu gets the native render scale (1, which -Resolution makes at the output's height) and the dynamic
resolution's lowest scale (LEONIDA_RENDER_SCALE_MIN, from -Lowest).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:16:56 -03:00
b3910e5e3d Merge pull request #2814 from TheGeogeo/test-red-green-compiler-crash
scripts: red_green.py tells a crashed compiler from a build error (TEST-RED-GREEN-COMPILER-CRASH)
2026-12-01 15:06:18 +01:00
9f27ba2e1f Merge pull request #2839 from aznohonza/docs/running-linux-wine-nvidia
docs: a Linux + Wine + NVIDIA profile that draws world frames (DOCS-RUNNING-LINUX-WINE-NVIDIA)
2026-12-01 14:36:15 +01:00
e04721c7f7 Merge pull request #2871 from aslan2142/docs/agent-standards-and-accuracy
docs: update agent/contributor standards, fix stale references, and consolidate docs
2026-12-01 14:17:24 +01:00
7e63341483 Merge pull request #2842 from aznohonza/docs/port-status-list-values-pair
docs/port_status.md: the measured list-values pair past the world load (DOCS-PORT-STATUS-LIST-VALUES-PAIR)
2026-12-01 14:14:29 +01:00
4367afb817 docs: address review findings in descriptor_lookup and docs/README 2026-12-01 08:08:00 -05:00
8246772326 docs: deduplicate AGENTS/CONTRIBUTING and consolidate descriptor_lookup docs 2026-12-01 07:53:33 -05:00
20b0be7107 Merge pull request #2364 from Tauwni/docs/testing-wine-macos
docs/testing.md: the Windows runtime tests under Wine on a Mac (WineHQ build, ROSETTA_ADVERTISE_AVX)
2026-12-01 13:47:46 +01:00
c95183fd8f Merge pull request #2229 from Tauwni/docs/kk-nan-constant-fixtures
docs/testing.md: three more KosmicKrisp failures from its (NAN) constant printing
2026-12-01 13:45:44 +01:00
457735ca8a docs: fix stale repo references and add coding-agent engineering bar 2026-12-01 07:44:31 -05:00
abf475ef65 Merge remote-tracking branch 'origin/main' into tools/cgroup-memory-peak
# Conflicts:
#	tests/test_run_game_wine.py
2026-12-01 12:55:58 +01:00
3fbc120df4 Merge pull request #1397 from whoalin1/mask-regs-data-read
rdna2spirv: a VALU data read of a lane-mask operand yields the wave's mask word
2026-12-01 12:53:35 +01:00
1b83716379 Merge pull request #2455 from MoonEyes/feat/picture-metrics
tools: picture_metrics.py and the PICTURE block, numbers only from a frame on your disk (TOOLS-PICTURE-REPORT)
2026-12-01 12:48:22 +01:00
427aa19b69 Merge pull request #2231 from MoonEyes/tools/chain-check
tools: chain_check.py, one page of counts for the whole shader chain (TOOL-CHAIN-CHECK)
2026-12-01 12:46:48 +01:00
a726736ec2 Merge pull request #1774 from Tauwni/fix/explicit-lod-bias-moltenvk
rdna2spirv: --explicit-lod-bias applies the S# LOD bias where MoltenVK drops the sampler's; ps_ssharp passes on Macs (SHADER-EXPLICIT-LOD-BIAS-MVK)
2026-12-01 12:45:24 +01:00
a63eb958d9 Merge pull request #2843 from aznohonza/docs/boot-which-end
docs/boot.md: which end a late run ended in, read from the [rt] counters (DOCS-BOOT-WHICH-END)
2026-12-01 12:43:31 +01:00
4913ef152e Merge pull request #2436 from kawaii-shakal/wine-run-shader-cache
run_game_wine.sh: keep the drivers' shader cache from run to run (WINE-RUN-SHADER-CACHE)
2026-12-01 12:30:40 +01:00
d9df071e91 Merge pull request #1585 from whoalin1/nc-i16-clamp-nv
rdna2spirv: emit OpBitFieldUExtract for the VOP3 16-bit result mask (NVIDIA And-&-0xFFFF miscompile)
2026-12-01 12:30:35 +01:00
e80995b9a8 Merge pull request #2188 from robot00f/docs/cpu-avx1-baseline-counts
docs(cpu_features): record baseline instruction counts and AVX1/SSE4.2 host delta
2026-12-01 12:02:09 +01:00
c6c8f5f5a3 scripts: build llvm-mc 23.1.5 by default, so the pipeline library translates (#1923)
* scripts, tools: build llvm-mc 23.1.5 by default, so the pipeline library translates

LLVM 21.1.8's gfx1013 decoder cannot decode 840 of the 2,684 compute
programs in the pipeline library of 1.0.2.1: their listings carry 79,490
undecodable words and 8,310 exp invalid_target_N lines, the translator
refuses all of them as "fall-through into undecodable words", and the
shaders stage keeps 1,844 of 2,684. LLVM 21 does translate all 26,503
shaders of shaders.rpf; the library is what it loses.

The same bytes under llvm-mc 23.1.5 have no rejected word in those 840,
and 839 of them translate and pass spirv-val (the last wants s_sethalt,
which the translator does not implement, under either version). The 1,844
that already translated were re-disassembled too: 1,674 listings change
and all 1,674 still translate, the other 170 are byte-identical, so the
stage goes from 1,844/2,684 to 2,683/2,684.

The build helper now builds 23.1.5 by default. The docs that name the
minimum version (README, docs/design.md, docs/testing.md, docs/linux.md)
and the three user-facing messages that still said 21+ (make_game.py's
preflight, shader_disasm.py's probe error, mc_command.py's install hint)
now say 23+, with the tests that assert those texts updated.

AI-assisted (DeepSeek Harness).
Written with an AI assistant.

* docs: LLVM 23 is what the shaders stage needs, and a test pins the script's default
2026-12-01 11:48:54 +01:00
4009a3426d Merge pull request #1659 from whoalin1/snan-fma-cmpclass
fmisc_diff: do not judge the class bits of a NaN whose quiet bit is unmodelled
2026-12-01 11:31:31 +01:00
501b3e6c5c Merge pull request #2805 from TheGeogeo/d3d12-gate-pwsh7
gate: game-gate.ps1 says it needs PowerShell 7 (D3D12-GATE-PWSH7)
2026-12-01 08:50:36 +01:00
d9c470cd30 game_run_summary: record the run cgroup's memory peak 2026-12-01 08:41:52 +01:00
7b06905c87 docs/port_status.md: wrap the device-loss paragraph
AI-assisted.
2026-12-01 07:54:06 +01:00