Commit Graph

5744 Commits

Author SHA1 Message Date
f77b4d80d0 Merge remote-tracking branch 'origin/main' into fix/rdna2spirv-f16-interp-computed-ij 2026-11-28 03:05:44 -08:00
e2924f5533 Merge pull request #1784 from mcpeacebir-lang/claude/cndmask-hw-probe
tools: cndmask_hw_probe measures v_cndmask_b32's abs/neg source modifiers natively (TOOL-CNDMASK-HW-PROBE)
2026-11-28 11:49:13 +01:00
3f0a398684 Merge pull request #1800 from mcpeacebir-lang/claude/valu-literal64-probe
tools: valu_literal64_probe measures how a 32-bit VALU literal is extended in a 64-bit integer operand (HW-VALU-LITERAL64-EXT)
2026-11-28 11:49:04 +01:00
4ecb057499 Merge pull request #1483 from kett1m/x64-recomp-grp7
x64_recomp: 0F 01 /r needs its ModRM byte (X64-RECOMP-GROUP7)
2026-11-28 11:19:55 +01:00
03bee3715b Merge remote-tracking branch 'origin/main' into fix/dstorage-multilevel-bcpack-fit 2026-11-28 02:06:17 -08:00
33db04a701 Merge pull request #1720 from PyZikYG/d3d12-calibration-queue-progress
d3d12: allow queue submissions during fallback clock calibration
2026-11-28 10:53:03 +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
e81f230a42 Merge remote-tracking branch 'origin/main' into fix/dstorage-multilevel-bcpack-fit 2026-11-28 01:32:52 -08:00
a589b5764d docs/boot_leads: say which leads are done and which have open pull requests (DOC-BOOT-LEADS-STATUS)
BL-2 (#913), BL-5 (#882) and BL-6 (#891) are merged, but the page still
listed them as open hypotheses, and it did not point at the open pull
requests for BL-3 (#1050) and BL-4 (#1166). Add a status table at the top
and a Status line per lead: the merged commit, where the result is
recorded, and what is still open (the Wine/Proton reproduction for BL-2,
the geometry-shader payload choice for BL-5, retail numbers for BL-6).
The leads' implementation notes stay as they were. docs/README.md's entry
names the status table instead of "hypotheses, not measurements".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R3jaqKsiawUYYVBKWHmGr8
2026-11-28 09:17:16 +00:00
00ed210a19 spirv_opt: scalar-replace surviving static Function arrays (SROA)
Split non-escaped, statically indexed Function-scope arrays (such as
%vgpr[256] and %sgpr[128] when no dynamic v_movrel*/s_movrel* indexing
exists) into per-slot scalar OpVariables for only the live slots
referenced after dominator-tree forwarding and DCE, eliminating the
monolithic array allocas and their static OpAccessChains.

Preserves arrays with dynamic indices, whole-array loads/stores,
escapes, decorations, non-null initializers, or negative/out-of-bounds
static indices; canonicalizes signed/unsigned constant indices with
equal value and rewrites multi-index OpAccessChains cleanly.
2026-11-28 09:12:41 +00:00
2f26ba9810 Merge remote-tracking branch 'lc/main' into lc/addr-no-int64
# Conflicts:
#	tools/rdna2spirv.py
2026-11-28 11:10:12 +02:00
7fa4a721e0 GPU results: keep #1085's RADV record in its own file (RX9070-RADV.txt) next to main's Windows RX9070.txt; a blank line before each record heading 2026-11-28 09:45:27 +01:00
d0d32f6373 Merge #691 (GPU results): keep both table rows 2026-11-28 09:44:58 +01:00
05c7e35514 Merge #675 (GPU results): keep both table rows 2026-11-28 09:44:58 +01:00
9c262ae213 Merge #1070 (GPU results): keep both table rows 2026-11-28 09:44:57 +01:00
35211b528d Merge #646 (GPU results): keep both table rows 2026-11-28 09:44:56 +01:00
5ed4e3678c Merge #631 (GPU results): keep both table rows 2026-11-28 09:44:56 +01:00
30fecae84c Merge #564 (GPU results): keep both table rows 2026-11-28 09:44:56 +01:00
14d3b1339e Merge #530 (GPU results): keep both table rows 2026-11-28 09:44:55 +01:00
455db57743 Merge #463 (GPU results): keep both table rows 2026-11-28 09:44:55 +01:00
046cd7504d Merge remote-tracking branch 'origin/main' into gpu-results-combined-7 2026-11-28 09:44:54 +01:00
766963e34a Merge pull request #2487 from Tyrannys/rt-gameinput-clip-drag
gameinput: let go of the cursor clip while the window is dragged (RT-GAMEINPUT-CLIP-DRAG)
2026-11-28 09:06:15 +01:00
4295601b81 Merge pull request #2088 from c0pperlane/vk-pipeline-large-admission
vk_pipeline_check: a large module that must wait frees its worker (VK-PIPELINE-CHECK-LARGE-ADMISSION)
2026-11-28 09:06:04 +01:00
6de34615a6 Merge pull request #2369 from plamea/boot-trace-pipeline-timing
boot_trace: summarize Vulkan pipeline waits and compilation
2026-11-28 09:05:06 +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
4a2609e79b Merge pull request #1151 from Taffyyy-ops/feat/junit-triage
tools: compare JUnit runs with private aggregate triage (JUNIT-TRIAGE)
2026-11-28 09:02:40 +01:00
8cf8c854f7 Merge pull request #630 from Kal0s-design/feature/cf-gpu-run
cf_gpu_run: run the FUZZ-8 control-flow programs on a Vulkan GPU (FUZZ-8-GPU)
2026-11-28 09:02:28 +01:00
68595f4a75 Merge pull request #569 from CLHelper/tools/boot-matrix
TOOL-BOOT-MATRIX: tools/boot_matrix.py, how far the retail boot gets for each set of pull requests
2026-11-28 09:02:16 +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
553e794367 Merge pull request #1207 from robot00f/docs/history-manifest
history: a portable, hashed manifest of the old-pr tips and the old issue index (#563)
2026-11-28 08:46:56 +01:00
a5d954a4a7 rdna2spirv, docs, tests: document ij_quad_eval shortcut bound and line det==0 fallback
- Mark Gen.ij_quad_eval with shortcut: in tools/rdna2spirv.py and update docs/design.md
  to state that binary32 quad finite differences amplify rasterizer input rounding by
  (1 + 2|alpha| + 2|beta|) (~|i - I_c| / |dI/dx| up to primitive pixel span) and that
  det == 0 (including 1D/line primitives with constant J) falls back to P_c.
- Tighten test_perspective_fixture_branch_and_f16_halves against a binary64 Jacobian
  oracle and add test_wide_2048px_perspective_extrapolation_bound_and_line_det_zero_fallback
  covering a 2048px perspective triangle (P in [1.5, 4096.0]) and line det == 0 fallback.
2026-11-27 23:21:23 -08:00
3eafd7971f docs: send the translated quickstarts GPU results to gpu-test-results/ too 2026-11-28 16:13:17 +09:00
e4b7f3c8c2 docs: point the community quickstarts at this repository and GPU results at gpu-test-results/ 2026-11-28 16:11:54 +09:00
25fd8e4776 Merge remote-tracking branch 'origin/main' into fix/rdna2spirv-f16-interp-computed-ij 2026-11-27 23:02:20 -08:00
cd8b5632b8 Merge branch 'main' of https://github.com/ProjectLeonida/mandy into test/round6 2026-11-28 01:22:20 -05:00
37c6c2aa27 docs(i18n/pt-BR): sync quickstart to b1619e0a (DOC-PTBR-QUICKSTART-SYNC) 2026-11-28 01:59:07 -03:00
0ab5ccd213 docs/shader_validation.md: the constant high-half reads are generated 2026-11-28 13:46:40 +09:00
69b6d7baaa docs/design.md: the packed high-half constant read is measured 2026-11-28 13:46:15 +09:00
772c7bc3f3 rdna2spirv: ds_permute_b32 stores its shuffles, so every lane runs them (SHADER-PERMUTE-EAGER)
Gen.ds_permute lets each destination lane scan the 32 source lanes of its half: per source
lane a shuffle of the published target, a shuffle of the data and an OpSelect that keeps the
data when the target is this lane. Each shuffle was used once and so was every link of that
chain, so SPIRV-Cross (MoltenVK) wrote the 32 steps as one nested ternary under the EXEC
ternary of the register write. A lane that takes an outer arm, or is off in EXEC, then runs
none of the shuffles inside it (the SHADER-529 mechanism).

On an Apple M5 (MoltenVK 1.4.2) tools/lds_fuzz.py --wave 32 --permute had 17 of the 100
programs of seed 31002 differ from the model, every one in a ds_permute_b32 result, mostly 0
where a source lane's data belongs. Both shuffles are now stored to Function variables
(Gen.eager), as the DPP rule stores its ballot bit and its shuffle.

tests/semantic/test_ds_permute_eager.py checks the three native forms with
test_dpp_eager_subgroup.py's model of SPIRV-Cross's single-use forwarding, and the values
against test_ds_permute.py's ISA model.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 12:44:48 +08: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
bed544a1d3 rdna2spirv: the wave mask gather is stored before it is read, so every lane runs it (SHADER-WAVEMASK-EAGER)
A register holds this lane's bit of a lane mask; v_mbcnt, s_bcnt1 and
s_ff1 gather the other lanes' bits with a subgroup operation
(Gen.wave_mask). v_mbcnt writes a VGPR, so its result is selected on the
lane's EXEC, and MoltenVK's SPIRV-Cross inlined the single-use gather
into the taken arm of that ternary:

    v6 = active ? popcount(simd_or(mine ? bit : 0) & below) + acc : v6;

A lane that is off never ran the gather, so its bit was missing from
every other lane's count. Gen.wave_mask now stores the gather to a
variable of its own with Gen.eager, as SHADER-529 did for DPP's ballot
and shuffle.

On an Apple M5 (MoltenVK 1.4.2), tools/crosslane_fuzz.py with wave 32,
native and no maskdata goes from 92 of 100 programs matching to 100 of
100, and from 193 to 200 of 200 with DPP at seed 7.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 12:44:47 +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
5e6631409e Merge #431 (GPU results): keep both table rows 2026-11-28 05:36:03 +01:00
61b360e48c Merge #663 (GPU results): keep both table rows 2026-11-28 05:36:02 +01:00
3cb976d0ec Merge #785 (GPU results): keep both table rows 2026-11-28 05:36:02 +01:00
7cb3c869bf Merge #1139 (GPU results): keep both table rows 2026-11-28 05:36:01 +01:00