Commit Graph

324 Commits

Author SHA1 Message Date
dfce074a05 ci: exclude deprecated legacy C++ runtime/ from automatic CI runs 2026-12-01 12:43:58 -05: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
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
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
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
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
f442c3dfba scripts: red_green.py tells a crashed compiler from a build error (TEST-RED-GREEN-COMPILER-CRASH)
A verification's only trial said "red does not build" while rustc had crashed (0xC0000005). A side whose
cargo output shows rustc or a build script ending with a Windows crash status, an internal compiler
error or a failed allocation now builds again once, and the report says so; a second crash gives the
verdict `compiler crashed` (exit 1), not `red does not build`. A test binary that crashes stays a test
result.
2026-12-01 01:49:41 +01:00
1f08a8abb1 scripts: red_green.py checks a pull request red and green locally (TEST-RED-GREEN-LOCAL)
Green is current main with the pull request merged. Red is current main plus only the pull request's
tests: its test files, and the hunks of other Rust files that change only #[cfg(test)] items,
committed on the merge base and cherry-picked with a 3-way merge. It runs the touched D3D12 crates'
cargo test and the changed tests/**/test*.py on both sides, in one worktree and one target dir under
the git common dir, and prints per test: red then green, pass on red and fail on green, fail on both,
on one side only, with a verdict and an exit code. docs/testing.md has it next to the fork-CI recipe.
2026-11-30 21:52:48 +01:00
d99ba5c095 Merge main: drop the macos job as main does, keep this PR's runtime.yml path filters
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:24:47 +01:00
61666057a2 Merge pull request #2747 from OreoFR/docs/fork-ci-red-green
docs/testing: red and green of a runtime pull request on your fork's CI
2026-11-30 17:50:13 +01:00
ae90109e79 ci(runtime): disable macOS CI job for now
The runtime and GPU test suite passes on real Apple Silicon hardware, while the hosted macos-26 paravirtual VM runner hits MoltenVK-specific failures on main. Disable the macos job in .github/workflows/runtime.yml and document it in docs/testing.md while keeping all Windows, Wine, and Linux CI jobs intact.
2026-11-30 11:18:37 -05:00
9f2ca58992 docs/testing: commit the red side's test before pushing (review on #2747)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 15:56:55 +01:00
0703aebb4e docs/testing: red and green of a runtime pull request on your fork's CI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 15:46:35 +01:00
ab09fd1f86 Merge main: keep --no-ftz32 and --integer-dot-fallback next to --explicit-lod-bias
tools/rdna2spirv.py: main's float-only typed implicit sample (OpImageSampleImplicitLod)
is used only without --explicit-lod-bias; with the flag the Grad path still
scales the derivatives by the S# bias.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:46:44 +01:00
07905380dc ps_ssharp: probe the bias at +-0.26, not +-0.3
NVIDIA (RTX 3090, driver 610.88) moves NEAREST mip selection to level 1 at
about +0.289, inside Vulkan's 0.25..0.5 range, so a single +0.3 already read
level 1 there (found by zmasi). +-0.26 stays under that on every driver, and
the bias counted twice (+-0.52) still crosses 0.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:55:18 +01:00
129c840089 ci: fix runtime/windows timeout, remove redundant CI legs, and harden caches 2026-11-29 19:17:38 -05:00
4bf6c65254 Merge main: keep main's two KosmicKrisp rows, add the cs_fmt_all row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 19:39:19 +01:00
878b024f4c Merge pull request #2602 from EvgHaze/docs/kosmickrisp-nan-rows
docs/testing: record the two ps_* KosmicKrisp NaN cases
2026-11-29 19:29:05 +01:00
e217665ce6 Merge pull request #1969 from j-weiner/docs/v100-cube-store-status
docs(testing): note V100 cube-store failure
2026-11-29 19:28:48 +01:00
3c1f549fd8 docs/testing: record the two ps_* KosmicKrisp NaN cases
ps_cndmask_sign_mods and ps_valu16_mad_sel fail 4096/4096 on KosmicKrisp
(Mesa 26.3.1) and pass on llvmpipe with the same Mesa and on MoltenVK
1.4.2; both read back 0x7fc00000 where the shader wrote a non-canonical
NaN or 0xffffffff, the same nir_to_msl constant path already recorded
for cs_bvh. Measured on an Apple M3, macOS 27.0.
2026-11-29 14:01:16 +10:00
bf458bbcb3 Merge remote-tracking branch 'origin/main' into lb
# Conflicts:
#	docs/design.md
2026-11-29 04:52:45 +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
f84e071dc3 Merge pull request #822 from hugo0024/check-f16-fallback
tests: build.py and check.py pick the f16 interpolation fallback from the device (TEST-CHECK-F16-FALLBACK)
2026-11-28 22:51:43 +01:00
8e1875a951 Merge pull request #1241 from IlyassRS3/carry/old-9952-run-wine-session
run_wine_session: initialize and stop the prefix with $WINE (OLD-9952)
2026-11-28 20:35:56 +01:00
6f0e7c9ced Merge pull request #1804 from Ch1mpleo/carry/old-9810
docs/testing: known-problems row for the four newer compute fixtures on an Arc 140T (ANV 25.2.8) (OLD-9810)
2026-11-28 19:28:01 +01:00
d57b78a9cd Merge pull request #1595 from GTAVIB4GTAVI/docs/testing-fma-dedup
docs/testing: one copy of the fused multiply-add section (DOC-TESTING-FMA-DEDUP)
2026-11-28 19:26:54 +01:00
e2560ed6d5 Merge pull request #1475 from klikso/docs/gpuav-known-problems
docs/testing: three tests that fail only under GPU-assisted validation, and why (DOC-GPUAV-LAYER-FALSE-POSITIVES)
2026-11-28 19:26:32 +01:00
9403be1f1d Merge pull request #1399 from thiefyzheng/docs/anv-intnarrow-word34
docs/testing: known problem, cs_fmt_int_narrow on Intel ANV Mesa 25.2 (TEST-1000 denormal flush, + Xe2/ARL evidence)
2026-11-28 19:25:24 +01:00
f238fb2756 Merge remote-tracking branch 'refs/remotes/origin/main' into HEAD 2026-11-28 14:30:44 +01:00
1a0e77ecb7 Merge pull request #1824 from Ch1mpleo/carry/old-9998
runtime: stop the configure when Vulkan headers are too old for the Windows runtime (OLD-9998)
2026-11-28 14:25:29 +01:00
7d28ffe631 Merge pull request #986 from Snooozs/bary-raphael-old-amd
vk_subgroup_info: take the barycentric fallback on a Raphael iGPU under AMD's 23.20.44 Windows driver (SHADER-BARY-RAPHAEL-OLD-AMD, TEST-RAPHAEL-7700-OLD-AMD)
2026-11-28 14:08:57 +01:00
f9ecf1981a Merge remote-tracking branch 'origin/main' into docs/kk-nan-constant-fixtures
# Conflicts:
#	docs/testing.md
2026-11-28 13:34:56 +01:00
3a7dc6126b Merge remote-tracking branch 'origin/main' into fix/explicit-lod-bias-moltenvk
# Conflicts:
#	.github/workflows/runtime.yml
2026-11-28 13:34:11 +01:00
80bedf24ae Merge pull request #1724 from hugo0024/test-fma-fused-f16-runtime
tests: cs_fma_fused takes its f16 operands at run time, like its f32 ones (TEST-FMA-FUSED-F16-RUNTIME)
2026-11-28 10:48:27 +01:00
eb3a0d1f8d Merge pull request #1938 from levi2m/feat/vk-model-oracle
vk_model_fuzz: judge pk16_diff, vint_diff and sdwa_diff on any Vulkan GPU against their reference model (VK-MODEL-ORACLE)
2026-11-28 09:04:11 +01:00
6a5219f603 Merge pull request #1727 from potatoe0100/claude/project-thread-es80ya
docs/testing: a Windows quick start and how to test someone else's PR (DOC-TESTING-WINDOWS-QUICKSTART)
2026-11-28 09:03:36 +01:00
95cc0e2237 Merge pull request #1304 from delysidemanYT1/doc-wine-artifact
DOC-WINE-ARTIFACT: fix the runtime-windows download command
2026-11-28 09:02:51 +01:00
17eb749473 Merge pull request #705 from abnalstlll-byte/feat/dx07-smoke-suite
tools: provide one-command synthetic source-only smoke suite (DX-07)
2026-11-28 09:02:05 +01:00
b327d69708 ci: cs_fma_fused is no longer an expected failure of the macOS job
With its f16 operands taken at run time the test passes on the macos-26
runner (Apple Paravirtual device, MoltenVK 1.4.2): the job's last run on
this branch printed "cs_fma_fused passed: drop it from the expected
failures". The Known problems row says where it passes now.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 12:44:48 +08:00
2836c5f1b1 docs: cs_fma_fused reads 0x7352 in its f16 word on KosmicKrisp at run time
Tauwni measured it in the review of #1724 (Apple M3, Mesa 26.3.1, 20 of 20 runs): with
run-time operands the f16 multiply-add comes out as if the product were rounded first, one
step from 0x7351. With literal operands the constant was folded exactly, so the fixture
passed there before. MoltenVK 1.4.2 and llvmpipe give 0x7351 on the same machine.

A Known problems row and a line in the fixture's header; no instruction changes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 12:44:48 +08:00
420116dbbc tests: cs_fma_fused takes its f16 operands at run time, like its f32 ones (TEST-FMA-FUSED-F16-RUNTIME)
The fixture reads the operands of its f32 multiply-adds from s4..s7 so that a driver has to
compute them at run time. The three operands of its v_fma_f16 were literals, which made the
whole f16 multiply-add a compile-time constant. MoltenVK 1.4.2 gives the wrong constant: word
7 read 0x0000 on an Apple M5 (0x3c00 in the docs' row) where 0x7351 is expected, the
cs_fma_fused failure listed in docs/testing.md and in the macOS job's EXPECTED_FAILURES. The
same translation with any one of the three operands taken at run time gives 0x7351.

The triple is now the s4 word XOR a literal each, so the test checks the translator's
round-to-odd sequence as the GPU runs it. The translator is not changed.

tests/semantic/test_fma_fused_fixture.py runs the fixture in the interpreter against the eight
words of its header and checks that no multiply-add in it reads a register only literals fed.
The Known problems row says what is left: an f16 multiply-add with only constant operands.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 12:44:48 +08:00
6064cbbb49 tests: build.py and check.py pick the f16 interpolation fallback from the device (TEST-CHECK-F16-FALLBACK)
run_gpu_tests.py and make_game.py translate with --f16-interp-fallback by
themselves where tools/vk_subgroup_info.py reports per_vertex_inputs
false (MoltenVK). build.py and check.py only did so with
LEONIDA_F16_INTERP_FALLBACK=1, so the two-step form on a Mac built
ps_ij_computed and ps_interp_f16_high for PerVertexKHR inputs and
check.py reported both as failed.

Both scripts now ask the device when the variable is unset, the way they
already do for the barycentric fallback, and take 1/0 (true/false, yes/no,
on/off) as run_gpu_tests.py does. On an Apple M5 (MoltenVK 1.4.2) check.py
goes from 175 of 220 pass, 39 skipped, 6 failed to 176 pass, 40 skipped,
4 failed: ps_interp_f16_high passes and ps_ij_computed is a SKIP.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 12:44:46 +08:00
27524a5e5b Merge remote-tracking branch 'origin/main' into fix/explicit-lod-bias-moltenvk 2026-11-28 02:57:41 +01:00
29361079f6 rdna2spirv: --mesh-serial-waves under --mesh-compute too (SHADER-W64-MESH-SERIAL-COMPUTE)
GPUs without VK_EXT_mesh_shader (NVIDIA Pascal) translate mesh programs with --mesh-compute and are the ones that
need wave64 emulation most, but the switch was off there. The compute program now runs the same passes, and
mesh_compute_epilogue's slot writes go through ms_serial_epilogue: the header from index 0, which only pass 0's
lane 0 has, and each pass's vertices and primitives at the built-in index + 64 * pass, from that pass's copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:26:50 +02:00
dbdef2efd7 mesh-serial-waves: a GPU fixture whose two waves run loops of different length
ms_w64x_wave_loops: each wave loops while a wave-wide count is not 0, 5 iterations in wave 0 and 9 in
wave 1, so under --wave64-emulate the waves reach different numbers of workgroup barriers. Written after
stalls were reported with the serial form on an RTX 2070 SUPER (issue 1608). On an RTX 4080 (NVIDIA
621.24) it draws 4096/4096 pixels exact side by side and in series; that does not explain the stalls.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 17:29:50 +08:00
fbceecf042 mesh-serial-waves: unit tests, the design row, the GPU runner's switch
tests/test_mesh_serial_waves.py: the module shape of a program that
qualifies (64 invocations, the pass loop, the index from the built-in,
the exchange's own place, per-pass copies of the exports, one
OpSetMeshOutputsEXT), that every initialised Function variable is set
again per pass, and that ms_wave_info_s3 (LDS), a 32-thread program,
native wave64 and --mesh-compute are unchanged by the flag.

LEONIDA_MESH_SERIAL_WAVES=1 is read by scripts/run_gpu_tests.py, like the
other translation switches, and no longer by rdna2spirv.py itself.
docs/design.md and docs/testing.md say what the flag does and how it is
tested; conftest gives ms_w64x_wave_votes its 128-vertex PSV0.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 11:29:22 +08:00
e3ee01dcde docs/testing.md: the Windows runtime tests under Wine on a Mac (WineHQ build, ROSETTA_ADVERTISE_AVX)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:39:54 +01:00
828541806e Merge main into bary-raphael-old-amd
tools/vk_subgroup_info.py: main now confirms the per-vertex feature by its extension after a device is chosen; this branch adds the chosen driver version to the same tuple. Both kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:27:14 +01:00