Commit Graph

12040 Commits

Author SHA1 Message Date
f8650dc5aa calibrated_texture: atomic no-clobber export with MoveFileExW and cleanup (CALIBRATED-TEXTURE-NO-CLOBBER) 2026-11-24 14:03:59 +05:30
1c93c86970 Merge pull request #449 from luckyteagirl/codex/doc-conform-native-run-path
Why merged: corrects the native conformance run path in the docs to match the README's build step (cd tools/conformance/native).
Why it's good: docs and conformance tests pass on main d42773d plus this PR.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:40:56 -05:00
51639a60f2 Merge pull request #440 from oddmaniv/docs/gameinput-host-diagnostics
Why merged: an 8-line docs note telling native GameInput host failures apart, worded cautiously.
Why it's good: no game data; docs tests and check_no_game_data pass on main d42773d plus this PR.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:40:41 -05:00
a2e85b6e8d Merge pull request #436 from luckyteagirl/codex/doc-index-gpu-results
Why merged: a one-line docs index link to the GPU test results page.
Why it's good: the link target exists; docs tests (links, encoding, tables, i18n) and check_no_game_data pass on main d42773d plus this PR.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:40:26 -05:00
f8fb9ba024 Merge pull request #503 from kotekompotek/work/ps-interp-modes-test-edge-cases
Why merged: tests-only coverage for ps_interp_modes (+3 tests).
Why it's good: security-reviewed; clean merge on main d42773d; the existing 30 tests and the 3 new ones pass.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:40:07 -05:00
4298782612 Merge pull request #502 from kotekompotek/work/fssm-header-test-edge-cases
Why merged: tests-only coverage for fssm_header (+2 tests).
Why it's good: security-reviewed; clean merge on main d42773d; the existing 42 tests and the 2 new ones pass.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:39:52 -05:00
5bd50af2fe Merge pull request #500 from kotekompotek/work/spirv-interface-empty-words
Why merged: tests-only coverage for spirv_interface (+3 tests).
Why it's good: security-reviewed; clean merge on main d42773d; the existing 43 tests and the 3 new ones pass.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:39:37 -05:00
67417a0525 Merge pull request #531 from nickfmbg/fix/bindless-churn-temp-dir
Why merged: d3d12_bindless_churn and its --validated run now use separate temp folders per process, fixing a race between parallel runs.
Why it's good: security-reviewed; reproduced on main d42773d (the pair failed 4 of 6 runs at -j2); with this PR 8 of 8 runs passed and no stale folders were left.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:39:22 -05:00
20d90cc6ba Merge pull request #515 from csmith105/codex/fcmpswap-nan-poststate
Why merged: the fcmpswap fixture now checks memory after the NaN atomic instead of the returned value, which can't tell a match from a miss; a negative control proves it catches an integer compare.
Why it's good: security-reviewed; on main d42773d the new test fails and passes with this PR (5/5); the GPU fixture passes on an RTX 4070 SUPER.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:39:07 -05:00
01aee11332 Merge pull request #507 from csmith105/codex/lds-u8-d16-fixture
Why merged: the LDS u8_d16 GPU fixture now has only lane 0 touch shared memory, removing a race between the 32 lanes.
Why it's good: security-reviewed; on main d42773d the new test fails and passes with this PR (3/3); the GPU fixture passes on an RTX 4070 SUPER (driver 621.24).

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:38:52 -05:00
5aedbc2230 Merge pull request #501 from Kal0s-design/fix/loader-iat-tls-header-writes
Why merged: the PE loader now refuses an import address table or TLS index placed inside the headers, where the write would overwrite e_lfanew.
Why it's good: security-reviewed; built with VS 2022 + Ninja on main d42773d: the 4 new rejection cases fail on main; with this PR pe_loader, pe_loader_bounds and pe_loader_fuzz pass, and 7/7 loader-related ctests pass.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:38:37 -05:00
b659fdbc39 Merge pull request #525 from kotekompotek/work/d3d12-guid-sites-float4-filter
Why merged: float4 SIMD constants such as (1.5f, 1.0f, ...) were being reported as GUIDs; the new filter rejects them while every real D3D12/GDK GUID is still accepted.
Why it's good: security-reviewed; tested on Windows 11 on main d42773d: the new test fails on main (1 failed / 1 passed) and passes with this PR (2/2); the existing 10 guid_sites tests still pass.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:38:23 -05:00
19dcfbae66 Merge pull request #529 from Boost9898/fix/translator-deps-rdna2-decode
Why merged: my merge of #462 broke three repo-consistency tests on main (test_cmake_translator_deps, test_shader_stage_resume, test_runtime_paths): it added translator inputs (tools/rdna2_decode.py, tools/rdna2_isa_tables.py) without listing them where the translator's inputs are tracked. My pre-merge check ran the translator suites but not these three; my mistake, and thanks @Boost9898 for the fix.
Why it's good: it lists the two modules in all three places (translator_deps.cmake, make_game.py's digest, and the runtime workflow's path filter; the workflow change only adds two paths, no permissions or steps). Verified on Windows 11: those three tests give 56 passed just before #462 (3eb813e), 53 passed / 3 failed with #462 and on main d42773d, and 56 passed with this PR. Note: the translator digest changes, so existing work folders re-translate once.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:37:56 -05:00
ace35e632b tests: d3d12_bindless_churn and its --validated run each get their own temp folder (TEST-CHURN-TEMP-DIR)
Both ctest entries run d3d12_bindless_churn_test with one fixed
%TEMP%\leonida_bindless_churn_test folder. Under ctest -j the first to finish
removes the folder and the other fails creating its pipeline ("cannot open
...\index.json"). The folder now carries the process id, as
d3d12_execute_indirect_validation_test does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:01:49 -08:00
d42773d073 Merge pull request #480 from kotekompotek/work/gen-gdk-classes-makedirs
Why merged: --out now creates its missing parent folder instead of failing.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: the new test errors on main and passes here; a 3-line change.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:59:48 -05:00
3fd9a89e20 Merge pull request #479 from kotekompotek/work/hw-oracle-asm-strip-lines
Why merged: indented SALU lines are now parsed for literals and removed opcodes.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: the new regression test fails on main and passes here; test_hw_oracle's 59 tests still pass.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:59:30 -05:00
5bc4d4f764 Merge pull request #478 from kotekompotek/work/bary-fallback-gs-validate-bary-loc
Why merged: a bool or negative bary_location is refused before any SPIR-V is generated.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 28 -> 29 tests OK (the new test fails on main); the only caller passes a JSON int.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:59:13 -05:00
417a7063e5 Merge pull request #477 from ettehn/fix/gpu-runner-store-verdict
Why merged: a device banner printed on stderr no longer replaces a store helper's verdict in GPU test output.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 62 -> 64 tests OK (both new tests fail on main); the other 27 run_gpu_tests tests still pass.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:58:58 -05:00
db6d78a3dc Merge pull request #474 from bobcatchris/semantic-package-tests
Why merged: parallel semantic runs now include package __init__ modules, the same as discover.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: runner tests 15 -> 17 OK (7 failures on main without the fix); the real suite still selects the same 465 files and 6105 tests.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:58:43 -05:00
0163aa3251 Merge pull request #467 from EdenBendheim/ubiq/opus-tags-duplicate-headers
Why merged: repeated tagging columns in either CSV are refused (exit 2) before any Ogg file is modified, and the docs say so.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 3 new tests (11 subtest failures on main), all passing on the merge. The one remaining failure, test_cli_reports_incomplete_directory_discovery (a Windows path repr), fails the same way on main.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:58:29 -05:00
93c7844987 Merge pull request #459 from EdenBendheim/ubiq/image-d16-probe-first-off-y
Why merged: a real bug fix: first_off examples now check both packed halves (X and Y) against the same saturation rule; before, only X was checked.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: test_image_d16_probe 17 -> 22 tests OK (4 of the new tests fail on main).

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:58:14 -05:00
4d64b64d1b translator deps: list rdna2_decode and rdna2_isa_tables
Since #462, tools/rdna2spirv.py imports rdna2_decode, which imports rdna2_isa_tables. Neither module was in the
three lists that track what the translator reads: LEONIDA_TRANSLATOR_DEPS (runtime/cmake/translator_deps.cmake),
TRANSLATION_SOURCES (make_game.py) and the runtime workflow's path filters. So test_cmake_translator_deps,
test_shader_stage_resume and test_runtime_paths fail on main, and an edit to the decoder neither rebuilds the GPU
test shaders, nor reruns translation, nor starts the runtime workflow.
2026-11-24 07:58:02 +01:00
dd9235d5a8 Merge pull request #457 from EdenBendheim/ubiq/fspx-prologue-probe-run-unavailable
Why merged: an Unavailable error from oracle.run() now exits 77 with a one-line message, and the oracle is always closed.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 5 -> 6 tests OK, and the new test errors on main.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:57:59 -05:00
4e859680d1 Merge pull request #455 from EdenBendheim/ubiq/world-grid-atlas-one-cell-mask
Why merged: a one-cell shoreline grid now stops with a one-line error instead of producing a meaningless match.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: test_world_grid_atlas 29 -> 32 tests, all OK (the new tests fail on main: 3 failures, 1 error); the native tests still pass.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:57:44 -05:00
554181222e Merge pull request #454 from EdenBendheim/ubiq/rbf0-encode-name-type
Why merged: names that aren't strings now get a clean "value"/"utf8" refusal, and batch export moves on to the next resource instead of crashing.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: test_rbf0_encode 32 -> 37 tests, all OK (the new tests fail on main: 12 failures, 6 errors); rbf0_tree's 38 still pass.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:57:30 -05:00
76faa39680 d3d12_guid_sites: filter IEEE-754 float4 SIMD constant false positives 2026-11-24 11:54:50 +05:00
a672a59800 Check buffer NaN compare-and-swap memory post-state 2026-11-23 22:43:28 -08:00
b45d7c2d14 SEMANTIC-PACKAGE-TESTS: run package initializers in parallel
unittest discover loads TestCase classes defined in a package's __init__.py regardless of the filename pattern. The parallel runner only selected test*.py files, so a failing package initializer could be skipped while -j 1 reported it. Include package initializers in the parallel module list; an empty initializer with no tests is not a failure. Add regressions for failing initializers and for a pattern that matches no test filenames.

AI-assisted.
2026-11-24 00:37:28 -06:00
d4eacf7d05 Restrict LDS byte-read fixture accesses to lane zero 2026-11-23 22:34:02 -08:00
c023a365a9 Merge pull request #473 from Dezmonius/test-warp-video-encode-allocator
Why merged: a minimal gate in the D3D12/Vulkan device test for hosts without D3D12 video support.
Why it's good: security-reviewed (7-line test change). Built and ran d3d12_vulkan_device_test with VS 2022 on an RTX 4070 SUPER (driver 621.24): passes before and after with identical output, as expected on a host that has video (the gate is a no-op there); the change is correct for hosts without it.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:33:36 -05:00
e513f346f0 Merge pull request #458 from Kokonotcu/pr/store-async-complete
Why merged: the XGameRuntime store slots find their XAsyncBlock argument at the right position.
Why it's good: security-reviewed (runtime shim only). Built with VS 2022 + Ninja on main 8f481cf plus this PR and ran ctest: xgameruntime_store_test 24 -> 27 checks, 0 failures; all 13 XAsyncBlock positions checked against the GDK signatures. Nit for later: the comment says a4-a6 come from the 32-byte home area, but for slots with fewer arguments they're read from the caller's frame beyond it (harmless, they're unused).

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:33:22 -05:00
a960c06fd2 Merge pull request #462 from bobcatchris/sdwa-llvm19
Why merged: a translator fix with its encoding test.
Why it's good: security-reviewed (translator code and tests only). Tested on Windows 11 merged onto main 8f481cf: the printed-encoding, decode and SDWA tests 87 -> 88 passed (2668 -> 2672 subtests); the full semantic suite (-j 12) 6104 -> 6105 tests with the same 3 failing files on main and with this PR (image_cube_store_glc, sopc_validation, unary_f16_validation), and the one decode-parity failure (llvm-mc 23 op_sel printing) also fails on main, so nothing new breaks.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:33:08 -05:00
3eb813ee7c Merge pull request #468 from csmith105/codex/semantic-process-timeout
Why merged: scripts/run_semantic_tests.py gains a per-file timeout and rejects a zero timeout, so one hung semantic test file can't stall the whole run.
Why it's good: security-reviewed (argv-list subprocess on sys.executable only). Tested on Windows 11 merged onto main 8f481cf: tests/test_run_semantic_tests.py 10 passed on main -> 15 passed with this PR (new tests fail without the fix); a real run with --timeout 300 over test_sdwa* ran 40 tests with 0 failures and --timeout 0 is refused. Merges cleanly together with #474.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:32:54 -05:00
f36a7a83d5 Merge pull request #447 from ettehn/fix/windows-console-input-deadline
Why merged: the Windows console input wait now honours its deadline instead of restarting the full wait after a discarded record (e.g. a mouse-move event).
Why it's good: security-reviewed (local tool change only). Tested on Windows 11 merged onto main 8f481cf: tests/test_leonida_tui.py 24 passed on main -> 25 passed with this PR; the new test fails on main and passes with the fix; compileall clean.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:32:40 -05:00
63250e6c6a Merge pull request #378 from lines9686-rgb/build-refuse-percent-path
Why merged: the build scripts now refuse a checkout or -Temp folder whose path contains '%' up front, instead of failing later in confusing ways; the reviewer nit (a relative -Temp) was fixed in 2a4f650.
Why it's good: security-reviewed (only path guards and a test: no URLs, downloads, elevation or policy changes). Tested on Windows 11 (RTX 4070 SUPER) merged onto main 8f481cf: build_llvm_mc/build_runtime tests 14 passed on main -> 17 passed with this PR; compileall clean; in Windows PowerShell 5.1 a path with '%' and '-Temp a%b' are refused while normal paths pass the guard. The earlier CI failures (macos/linux-gpu-tools MoltenVK shader tests) are unrelated to these scripts.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:32:15 -05:00
db8a0cc793 pe_loader: refuse an import address table or TLS index in the headers
After map_image, the loader writes into the mapped image twice: the bound
address of every import and the image's TLS index. Every step after it
(parse_exports, bind_imports, protect_sections, register_unwind,
initialise, ~Loader) reads the headers back from the mapping. A
FirstThunk or AddressOfIndex below SizeOfHeaders therefore replaced
e_lfanew or the section table, and the next read went outside the image
or used headers nobody validated. The loader already refuses a section
or a base relocation there; this closes the two remaining writes.

An index at RVA 0 is refused too: index_rva doubles as "no index", so the
index was silently never written.

Found by mutation fuzzing rt::Loader::load. The six new cases in
test_pe_loader_bounds build their images by hand; four of them fail
without this change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 07:29:32 +01:00
2ccd7340ce test: cover interp_class, read_method, and chunk_table errors in ps_interp_modes 2026-11-24 11:29:11 +05:00
108c249219 test: cover directory_ok, wave_size, and non_negative in fssm_header 2026-11-24 11:28:19 +05:00
3222ab27a5 test: cover parse_words and literal string edge cases in spirv_interface 2026-11-24 11:27:57 +05:00
90eb7284fe Reject semantic-test timeouts beyond portable wait limits 2026-11-23 22:20:42 -08:00
b35b222df1 Keep the GPU helper verdict ahead of the device banner 2026-11-24 14:02:53 +08:00
86ba7556ba test: gate VIDEO_ENCODE allocator parity on host video support 2026-11-24 08:58:15 +03:00
2a4f650b7b build_llvm_mc.ps1: a relative -Temp is checked as the full path it resolves to
Review by @QemmHD: a relative -Temp under a working directory with % skipped the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:52:50 +03:00
973593f4a7 Add optional timeout to semantic test subprocesses 2026-11-23 21:47:06 -08:00
d85e326eb7 opus_tags: reject duplicate CSV headers used for tagging 2026-11-24 00:46:14 -05:00
c932457840 rdna2spirv: recover native SDWA inline float from LLVM 19 listings
LLVM 19 prints an 8-byte integer-to-half SDWA conversion as a 12-byte instruction with an extra literal dword. Recover the native source and byte length when the opcode, selector, other bytes and printed literal agree, and keep following instruction offsets correct.

Carried from the source-only patch by Sigtryggur-Mani-Gudmundsson:
b17a81c3d9/tests/sdwa-inline

AI-assisted.
2026-11-23 23:45:05 -06:00
7c2aaebf1a Report packed Y mismatches in image_d16_probe 2026-11-24 00:41:24 -05:00
fccee2a3c5 fspx_prologue_probe: handle unavailable oracle during execution 2026-11-24 00:41:18 -05:00
c33f9d6e8d world_grid_atlas: diagnose one-cell shoreline grids
Mask matching ranks the best and runner-up overlaps, so a single cell has no second score. Reject grids with fewer than two cells using the same error as content matching.
2026-11-24 00:41:03 -05:00
bbf2cf1119 rbf0_encode: refuse invalid descriptor names 2026-11-24 00:39:02 -05:00