upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/testing.md
AgeCommit message (Collapse)Author
10 daysMerge pull request #1840 from delysidemanYT1/doc-gpu-coordination-linkAndréLanD
DOC-GPU-COORDINATION-LINK: Point GPU testers to the active coordination issue
10 daysMerge pull request #1471 from LouisRiverstone/doc-testing-python-minAndréLanD
docs/testing.md: Python 3.12+, as make_game.py requires (DOC-TESTING-PYTHON-MIN)
10 daysMerge pull request #860 from hugo0024/doc-imgatomic-mvkaslan2142
docs/testing.md: Known problems row for ps_imgatomic on MoltenVK 1.4.2 (DOC-IMGATOMIC-MVK)
10 daysMerge pull request #624 from ↵aslan2142
jarvixaiassistant-glitch/fix/old-10045-vk-barycentric-ext vk_subgroup_info: per_vertex_inputs needs VK_KHR_fragment_shader_barycentric listed (OLD-10045)
10 daysDOC-GPU-COORDINATION-LINK: Point GPU testers to the active coordination issuedelysidemanYT1
10 daysMerge main (3ff2a2adc) into the #939 mergeJan Trencansky
Fourteen commits main gained after #968: #413, #1114, #1090 and #1491. Two conflicts, both in the shader check lists: scripts/run_gpu_tests.py imports both sides' cases, and tests/test_shader_checks.py counts eight cases next to COMPUTE (main's cs_w32_salu_ext) and #939's IMAGE_STORE_CASES table in place of main's fixed seven store shaders. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
10 daysMerge pull request #1114 from milk4sale/gpu-test/salu-extubiquitarianism
tests: GPU readback for 38 scalar ALU ops on run-time operands (GPU-SALU-EXT)
11 daysMerge the #984 result (main + RT-PROTON-STORY-LOAD) into #939Jan Trencansky
The base is 8a242efeb, the merge of main and #984. 68 files conflicted; they were resolved in seven groups by one rule: the same change in two forms keeps the base's form, everything only #939 has is kept, and where the two solve one problem in two ways the base's is the frame and #939's plugs into it. A, the Xbox proxy (d3d12_xs_device.cpp/.h, d3d12_xs.cpp, d3d12_xs_pso_stream.cpp/.h, d3d12_xs_alloc_size.h, d3d12_xs_desc_clean.h, device_proxy_test.cpp, queue_proxy_test.cpp): the base's files with #939's additions ported in. Device slot 57 asks #939's NativeGraphicsFactory first and falls back to the base's proxy_create_graphics_pipeline_from_native_code on E_NOTIMPL. Kept from #939: the providers (texture lease, raw texture view, resource by address, constant view, descriptor mapping, depth-stencil UAV, texture pages), the title-backed descriptor mirror, slot 13's feature answers, GPU labels on list slots 71/72. Dropped: #939's duplicates of the boot ladder routes, its fallback window, its slot 133 stand-in. A2 (xs_proxy_mock_test.cpp): the base's test with #939's slot 70 raw-buffer case; presentation cases follow #939's rule that a device which ever had a handler has no queue fallback. B1, the Vulkan device (d3d12_vulkan_device.cpp, d3d12_com.cpp/.h, shader_library.h, queue_families.h, pipeline_cache_file.h, startup_trace.h): one lazy-pipeline mechanism, the base's; #939's pending_base_compile and first_use_backend_pipelines dropped, prepare_on_bind and cold_graphics_compile kept. create_texture keeps the base's signature; #939's deferred backing is folded into the base's placed-memory binder. #939's quad lists as triangle indices. B2, the D3D12 tests (d3d12_existing_heap, a8_dimensions, pipeline_cache_seed, title_va, rect_list, shader_library, loader_tls_index0, draw, compute, xmem_placed, shader_library_corpus): the base's tests where both carry the same case, #939's cases added (rebound tables, linear texture map, large vertex batch, executable shaders, default A8 views). C, the backend (vulkan_replay.h, vulkan_backend.h, vulkan_bindless.h, vulkan_scratch.h, vulkan_present.h, rect_list_geometry.h, vk_test_device.h, vk_pipeline_check.cpp, vk_store_test.cpp, bindless_sizing_test.cpp, replay_texture_barrier_test.cpp): the base's prepare_draw and lazy compute, its #1055 release rule and its rectangle generator; #939's rectangle variants, GPU quad index expansion, 1D/3D and depth-stencil UAVs, the label fence on the base's submit. D, memory, services, presentation (xmem.cpp/.h, xg_xs.cpp, xg_xs_test.cpp, title_va_alias.h and its test, main.cpp, frame_pacer.h, xbox_present.cpp/.h; xgameruntime_offline.cpp for one comment): the base's xmem with #939's label hooks, file-backed sections and pin_mapped_data; both texture computers in xg_xs.cpp, the base's answering first; --first-run-ui kept without host speech in its profile. E, build, tools, docs (runtime/CMakeLists.txt, make_game.py, tools/rdna2spirv.py, tools/shader_disasm.py, scripts, tests, docs; docs/README.md and tests/test_exe_shaders_stage.py beyond the conflicts): the base's v_dot4 decode, #281's disassembler form and tests/semantic/test_fspx_dot4_op_sel_disasm.py dropped; the base's executable-shader step with #939's cache fix; 366 registered tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysdocs/testing.md: Python 3.12+, as make_game.py requires (DOC-TESTING-PYTHON-MIN)Luiz Neves
"What you need" said Python 3.11+ and the dict | None troubleshooting row said to use 3.11+, but make_game.py stops on anything older than 3.12 (as the README and every CI job say), so its tests fail on 3.11. scripts/run_gpu_tests.py on its own still runs on 3.10+.
11 daysMerge pull request #1063 from milk4sale/gpu-test/frexp-ldexpaslan2142
tests, rdna2spirv: GPU readback for frexp and ldexp, and their neg/abs sources move the sign bit (GPU-FREXP-LDEXP, SHADER-FREXP-LDEXP-SIGN-MODS)
11 daysMerge gpu-test/round-f64 into gpu-test/frexp-ldexp: main 6558d5318, with ↵milk4sale
#1012 merged Takes the updated head of #1034's branch, which holds main 6558d5318 (#1012, GPU-CMP-F64, is merged there). Git merged it without conflicts (git merge-tree, exit 0), and the tree is the one a direct merge of main gives. GitHub had reported a conflict since #1012 merged, with the branch and main on two merge bases (68d1331e5 and 50407827c). Merging #1034's head instead of main leaves this branch with one merge base with main when #1034 merges. The merged tree was tested before the push: every standalone test file under tests/ passes except tests/test_ci_registration.py, which fails on main 6558d5318 alone (#1365 fixes it). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysMerge gpu-test/round-f64 into shader/round-f64-specials: main 6558d5318, ↵milk4sale
with #1012 merged Takes the updated head of #1034's branch, which holds main 6558d5318 (#1012, GPU-CMP-F64, is merged there). Git merged it without conflicts (git merge-tree, exit 0), and the tree is the one a direct merge of main gives. GitHub had reported a conflict since #1012 merged, with the branch and main on two merge bases (68d1331e5 and 50407827c). Merging #1034's head instead of main leaves this branch with one merge base with main when #1034 merges. The merged tree was tested before the push: every standalone test file under tests/ passes except tests/test_ci_registration.py, which fails on main 6558d5318 alone (#1365 fixes it). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysMerge main into gpu-test/round-f64milk4sale
Brings the branch up to date with main 6558d5318, which now holds #1012 (GPU-CMP-F64), the pull request this one was stacked on. Git merged it without conflicts (git merge-tree, exit 0). GitHub had reported a conflict since #1012 merged, with the branch and main on two merge bases (68d1331e5 and 50407827c); main is an ancestor of this commit. The merged tree was tested before the push: every standalone test file under tests/ passes except tests/test_ci_registration.py, which fails on main 6558d5318 alone (#1365 fixes it). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysMerge pull request #1012 from milk4sale/gpu-test/cmp-f64aslan2142
tests: GPU readback for the binary64 vector compares, v_cmp_*_f64 and v_cmpx_*_f64 (GPU-CMP-F64)
11 daysMerge main into gpu-test/salu-extmilk4sale
Brings the branch up to date with main 68d1331e5. No conflicts; the merged tree was tested before the push (every standalone test file under tests/ passes except tests/test_ci_registration.py, which fails on main alone since #930). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysMerge main into gpu-test/frexp-ldexpmilk4sale
Brings the branch up to date with main 68d1331e5. No conflicts; the merged tree was tested before the push (every standalone test file under tests/ passes except tests/test_ci_registration.py, which fails on main alone since #930). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysMerge main into shader/round-f64-specialsmilk4sale
Brings the branch up to date with main 68d1331e5. No conflicts; the merged tree was tested before the push (every standalone test file under tests/ passes except tests/test_ci_registration.py, which fails on main alone since #930). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysMerge main into gpu-test/round-f64milk4sale
Brings the branch up to date with main 68d1331e5. No conflicts; the merged tree was tested before the push (every standalone test file under tests/ passes except tests/test_ci_registration.py, which fails on main alone since #930). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysMerge main into gpu-test/cmp-f64milk4sale
Brings the branch up to date with main 68d1331e5. No conflicts; the merged tree was tested before the push (every standalone test file under tests/ passes except tests/test_ci_registration.py, which fails on main alone since #930). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysMerge pull request #1354 from aslan2142/wine-tests-fastaslan2142
run_wine_tests: keep one wineserver, disable winedbg, add --jobs (TEST-WINE-FAST)
11 daysrun_wine_tests: keep one wineserver, disable winedbg, add --jobsJan Trencansky
Run one after another, each Windows test under Wine took several seconds, most of it a wineserver starting and stopping around every test. The runner now keeps one wineserver alive for the run (`wineserver -p`, the one $WINESERVER or the --wine command uses) and stops it at the end, also after a failure or Ctrl+C. It starts the prefix's services first with `wine wineboot` and no output: the first program a server runs starts them, they inherit its output pipe, and with a kept server they hold it open until the timeout. Each test's WINEDLLOVERRIDES gains winedbg.exe=d (a crash fails at once instead of waiting in the debugger) and winemenubuilder.exe=d (no menu entries or file associations in the user's profile); an entry of the caller's or the test's for the same program wins. --jobs N (default 1) runs N tests at a time, keeping RUN_SERIAL tests alone, tests that share a RESOURCE_LOCK apart and DEPENDS in order, and reports them in the same order as --jobs 1. docs/testing.md gains the fast local recipe for the cross-build with measured times, the menu-builder note and --jobs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 daysMerge gpu-test/round-f64 into gpu-test/frexp-ldexp: cs_w32_round_f64's ↵milk4sale
llvmpipe allowance #1034 gained a commit: on llvmpipe, v_trunc_f64 and v_rndne_f64 may return what its float code gives a double on a CPU without AVX-512. That fixture is in this stack and was this branch's red linux-gpu-tools (`word 164 (thread 10): rndne of 0x3fe0000000000001 gave 0x0000000000000000`); cs_w32_frexp_ldexp passed in that run. No conflict. Tested on this merge: `--filter cs_w32_` on llvmpipe (Mesa 26.2.6) natively and under GALLIUM_OVERRIDE_CPU_CAPS=avx, 15 of 23 passed and 8 skipped in both, and 23 of 23 on the RTX 4070 Ti (NVIDIA 620.70.06). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysMerge gpu-test/round-f64 into shader/round-f64-specials: the exact judge ↵milk4sale
keeps llvmpipe's float-path allowance #1034 gained a commit: on llvmpipe, v_trunc_f64 and v_rndne_f64 may return what its float code gives a double on a CPU without AVX-512 (the cause of this branch's red linux-gpu-tools, `word 164 (thread 10): rndne of 0x3fe0000000000001 gave 0x0000000000000000`). The judge here stays exact for every other word and device, a NaN and a subnormal included, and takes that one allowance; docs/testing.md says so next to "compared exactly". Tested on this merge: the fixture passes on llvmpipe (Mesa 26.2.6) natively and under GALLIUM_OVERRIDE_CPU_CAPS=avx and sse2, and on the RTX 4070 Ti (NVIDIA 620.70.06) natively and with LEONIDA_W64_EMULATE=1. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daystests: cs_w32_round_f64 allows llvmpipe's float path for Trunc and RoundEven ↵milk4sale
(GPU-ROUND-F64) linux-gpu-tools failed this fixture with `word 164 (thread 10): rndne of 0x3fe0000000000001 gave 0x0000000000000000`, on some runners and not on others. The cause is llvmpipe, not the translation: its double vectors are twice its native width (512 bits at the usual 256), and it has the exact Trunc and RoundEven only for a width the CPU has a vector extension for. Without AVX-512 the two ops go through the code it has for a float, where a magnitude above 2^24 comes back unchanged and RoundEven of a smaller one can give the other neighbouring integer. That is 48 of the 512 results, the same 48 with Mesa 25.2.8 (LLVM 20.1.2) on a runner and with Mesa 26.2.6 (LLVM 23.1.4) under GALLIUM_OVERRIDE_CPU_CAPS=avx, sse4.1 or sse2 on a Ryzen 9 7900X; Floor and Ceil are exact on that path, and with AVX-512 (or AVX at LP_NATIVE_VECTOR_WIDTH=128) so are all four. On llvmpipe the judge now lets v_trunc_f64 and v_rndne_f64 return what that path can give: the source itself above 2^24, either neighbouring integer with the source's sign from 0.5 up to it. Everything else stays exact there, and no other device gets the allowance (ROUND_F64_FLOAT_PATH, keyed like UNJUDGED_WORDS). dump_test hands the test program's output to a judge, for its device line. Tested: the fixture passes on llvmpipe natively and under each of the three overrides, at LP_NATIVE_VECTOR_WIDTH=128, and on the RTX 4070 Ti (NVIDIA 620.70.06) natively and with LEONIDA_W64_EMULATE=1; the previous judge fails under each override at word 164. tests/test_gpu_round_f64.py rebuilds the 48 measured results and checks that nothing wider passes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysdocs: drop the sections a merge duplicated in three pagesEnea Cortese
animation.md repeated the whole `MoVE` state-machine section, gbuffer.md repeated the `OSG1` census table and section 2 (leaving a `## 3` heading whose body began mid-sentence), and testing.md repeated the 128-byte push-constant section back to back after a list item. The copy dropped in each page is the older one: the surviving `MoVE` text adds "747 child states total" and the surviving `### Arithmetic` text carries the 256-of-256 / 2-of-256 round trip. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
11 daystests: GPU readback for 38 scalar ALU ops on run-time operands (GPU-SALU-EXT)milk4sale
No fixture in runtime/test/shaders ran s_sub_i32, s_andn2_b32, s_orn2_b32, s_xor_b32, s_ashr_i32, s_mul_hi_u32, s_lshl3_add_u32, s_lshl4_add_u32, s_pack_ll_b32_b16, s_pack_hh_b32_b16, s_abs_i32, s_bcnt0_i32_b32, s_bitset0_b32, s_bitset1_b32, s_brev_b32, s_flbit_i32, s_flbit_i32_b32, s_sext_i32_i8, the six s_cmp_*_i32, s_cmp_gt_u32, s_cmp_le_u32, s_bitcmp0_b32, s_bitcmp1_b32, s_addk_i32, s_mulk_i32, s_cmovk_i32, s_ashr_i64, s_lshl_b64, s_lshr_b64, s_bcnt0_i32_b64, s_bitset0_b64, s_cmov_b64 or s_ff0_i32_b64. cs_w32_salu_ext gets sixteen operand words in s4..s19 from VKC_SGPRS, so each op reaches the driver as SPIR-V and is not folded by the translator as an op on literals is. One thread stores every destination and four words of SCC bits: SCC after each op that writes it, run on operands that set it and on operands that clear it, each compare both ways, and SCC after each op that must keep it, set to 1 and to 0 in turn before them. The 73 expected words are literals in check.py, derived in the fixture's header. tests/test_gpu_salu_ext.py recomputes them from the fixture's own instruction lines with the reference of tools/salu_diff.py, checks that every op that writes SCC is seen with both values, and checks the readback and both runners' verdicts. The fixture is the first in the folder with bit 15 set in the immediate of a signed SOPK op (s_addk_i32 s52, 0x8000). tools/rdna2_decode.py gives that immediate sign-extended and llvm-mc 23.1.4 prints the same word as 0x8000, so test_parity_with_llvm_mc_on_shader_fixtures failed on it. That test now compares the immediates of the ten signed SOPK ops as the 16 bits they are, as it already does for SOPP branch offsets, and a hand-encoded test pins which of the sixteen ops the decoder sign-extends. No translator, decoder or runtime change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daystests, rdna2spirv: GPU readback for frexp and ldexp, and their neg/abs ↵milk4sale
sources move the sign bit (GPU-FREXP-LDEXP, SHADER-FREXP-LDEXP-SIGN-MODS) v_frexp_mant_f32, v_frexp_exp_i32_f32, v_ldexp_f32, v_frexp_mant_f64 and v_frexp_exp_i32_f64 are lowered with integer ops on the float's words, and no fixture in runtime/test/shaders ran any of them. cs_w32_frexp_ldexp is memory-fed, like cs_w32_shift64: check.py seeds 64 records of a binary32 value, an ldexp exponent and a binary64 value, and each thread loads one at run time and stores the five results, v_frexp_mant_f32 with a neg source, and v_ldexp_f32 with an abs source run with the odd threads turned off. The records cover the exponent clamp, overflow and underflow, binary32 denormals, binary64 subnormals on both sides of the dword boundary, zeros, infinities and NaNs. The expected words come from an oracle written from the rows of docs/design.md, checked against math.frexp and math.ldexp in tests/test_gpu_frexp_ldexp.py. On an RTX 4070 Ti (NVIDIA 620.70.06) six words were wrong: every NaN source under neg or abs came back as 0x7fffffff, the driver's default NaN. The binary32 branch applied the modifiers as FAbs and OpFNegate, from which Vulkan lets a driver return any NaN. The three ops only move bits, so the branch now reads its source through Gen.src_u_sign_mods, as the min/max family does. tests/semantic/test_alu_frexp_ldexp.py checks that the modifiers are emitted as sign-bit ops. With that the fixture's 768 words are exact on the RTX 4070 Ti and on llvmpipe. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysrdna2spirv: the binary64 roundings keep a NaN's bits and round a subnormal ↵milk4sale
without the driver (SHADER-ROUND-F64-SPECIALS) v_trunc_f64, v_ceil_f64, v_rndne_f64 and v_floor_f64 hand their source to the driver's double-precision Trunc, Ceil, RoundEven and Floor. Vulkan lets a driver return any NaN for a NaN operand and, with no DenormPreserve for 64 bits, read a subnormal as zero, and cs_w32_round_f64 measured both: a signalling NaN came back quiet on an RTX 4070 Ti (NVIDIA 620.70.06) and on llvmpipe, and llvmpipe read the smallest subnormals as zero, so v_ceil_f64 of the positive one gave +0. RDNA2 returns a NaN unchanged and keeps subnormals: that ceil is 1. The two kinds of source are now selected with integer ops on the words, after the source modifiers and before the output ones. A NaN's words pass through. A subnormal gives a zero of its sign, or 1 with its sign where the op rounds that sign away from zero (ceil of a positive one, floor of a negative one). Every other source still takes the driver's result. cs_w32_round_f64 now compares all 1152 words exactly, on both devices. tests/semantic/test_f64_round.py runs the four ops under a model of a driver that quiets a NaN and reads a subnormal as zero; without the change that class fails for the signalling NaNs and for ceil and floor of a subnormal. The row in docs/design.md describes the rule and how it was confirmed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daystests: GPU readback for the binary64 roundings, v_trunc_f64, v_ceil_f64, ↵milk4sale
v_rndne_f64 and v_floor_f64 (GPU-ROUND-F64) The translator gives the four ops to the driver's double-precision Trunc, Ceil, RoundEven and Floor, and no fixture in runtime/test/shaders ran them, so what a driver does with ties, the largest value below 0.5, values at and above 2^52, signed zeros, subnormals, infinities and NaNs had never gone through the GPU suite. cs_w32_round_f64 is memory-fed, like cs_w32_shift64 and cs_w32_cmp_f64: check.py seeds 64 inputs and each thread loads one at run time and stores eight results: the four roundings, v_trunc_f64 with a neg source, v_ceil_f64 with an abs source, a v_floor_f64 whose destination pair overlaps its source pair, and a v_rndne_f64 run with the odd threads turned off, whose destination must keep the pair it held. The expected words come from Python floats (exact IEEE-754, the result keeping its source's sign) and are checked against exact rational rounding in tests/test_gpu_round_f64.py. Two kinds of input are judged by what Vulkan lets a driver do, not by RDNA2: a NaN may come back as another NaN, and a subnormal may be read as a zero of its sign, since the module declares no DenormPreserve for 64 bits. That is what the fixture measured: on an RTX 4070 Ti a signalling NaN comes back quiet, and on llvmpipe the smallest subnormals are also read as zero. The row in docs/design.md records both as an approximation. dump_test takes an optional judge for such a readback. No translator or runtime change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daystests: remove unavailable mullit readback pathKernelSmoker
11 daystests: GPU readback for the binary64 vector compares, v_cmp_*_f64 and ↵milk4sale
v_cmpx_*_f64 (GPU-CMP-F64) The v_cmp_*_f64 / v_cmpx_*_f64 row of docs/design.md was CPU-checked and measured on native gfx1100, and no fixture in runtime/test/shaders used a binary64 compare, so the SPIR-V those 32 ops translate to had not run on a driver. cs_w32_cmp_f64 is memory-fed, like cs_w32_shift64: check.py seeds 256 operand pairs, the product of 16 values (+-inf, +-max, the 1-ULP neighbours of +-1, the smallest subnormals, +-0, the smallest normal, a NaN whose payload is only in the low dword, a negative quiet NaN), and each of 128 threads loads two of them at run time. Per pair it stores a v_cmp_ word (through VCC) and a v_cmpx_ word (through EXEC): one bit per predicate in opcode order, a bit for tru run with the odd threads turned off (an inactive lane gets VCC 0 and stays off through v_cmpx_), and two bits for lt and nge with VOP3 abs/neg. The expected words come from Python floats. Both GPU runners compare all 1536 heap words, the unchanged inputs included. tests/test_gpu_cmp_f64.py checks, without a GPU, the oracle against an independent restatement of the 16 predicates, a few words worked out by hand, that the assembly gives every predicate the oracle's bit, and the readback and runner verdicts. docs/testing.md describes the fixture and the row names it. No translator or runtime change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysdocs/testing.md: Known problems row for ps_imgatomic on MoltenVK 1.4.2 ↵hugo
(DOC-IMGATOMIC-MVK) The test fails in about two of three runs on Apple GPUs with MoltenVK 1.4.2 (#543) and had no row. The row records what the Apple M5 adds to the M5 Pro report: - MoltenVK lowers the four atomics to Metal's texture atomics, so the module is not turned into a read-modify-write on the way; - a wrong umax or umin texel always holds the max or min of only some of its own 64 pixels, as a lost update between two groups of fragment threads leaves it; - it is neither the first-lane broadcast of the descriptor index (54 of 60 runs fail with the index used directly) nor the readback (42 of 60 fail with the copies in a submission of their own). Documentation only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
11 daysMerge current main and retain mesh statistics in the first-run rendering contextRain156
11 daysIntegrate #682 for the Windows first-run UIRain156
11 daysIntegrate the storage-image translation rules from #213Rain156
The corresponding runtime views are assembled with the other first-run rendering dependencies.
11 daysMerge pull request #554 from Puttergilll/docs/gpu-result-instructionsubiquitarianism
docs: fix GPU result submission instructions
11 daysMerge pull request #590 from JiyouProt/codex/gpu-valu64-shiftsubiquitarianism
tests: GPU readback for dynamic 64-bit vector shifts (GPU-VALU64-SHIFTS)
11 daysd3d12: GPU test for indexed quad lists: both index sizes, a base vertex, ↵QemmHD
flat inputs, overlapping instances (d3d12_quad_index) d3d12_rect_list draws its quads without an index buffer, so it could not see what #207's review measured on indexed ones. d3d12_quad_index_test draws six 64x64 frames through DrawIndexedInstanced with IASetPrimitiveTopology(19) and compares every pixel bit for bit: 0 non-indexed control 1 16-bit indices, a quad whose corners all differ: the first vertex's colour everywhere 2 32-bit indices from StartIndexLocation 3 3 16-bit indices from StartIndexLocation 5 (an address of 2 modulo 4), BaseVertexLocation 3 4 two quads and two instances whose quads overlap: the later instance on top 5 a view that ends inside the second quad: its last two indices read 0 The index buffer is in a DEFAULT heap and filled by a copy in the first list, so only the GPU can read it. Two translated fixtures, like vs_m15 and ps_m15: vs_quad_inst.asm reads the instance id (v3) to move and recolour each later instance, ps_quad_flat.asm reads its colour with v_interp_mov, which makes the input Flat. RTX 4070 SUPER (621.24), Windows 11, LEONIDA_VK_VALIDATION=1: on the six commits of #207: frames 1, 2, 3 and 5 match in 0 of 4096 pixels (black and blue, the second and third vertex), frame 4 in 2048, frame 0 in 4096; exit 1 with the expansion: 4096 of 4096 in all six, 0 validation errors run_gpu_tests.py lists the two fixtures as run by this test, and docs/testing.md names the test (and d3d12_rect_list) among those that need llvm-mc and the SPIR-V tools. AI-assisted (Claude Code; Claude Opus 5.5 and Claude Fable 5.2). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
11 daysvk_subgroup_info: per_vertex_inputs needs VK_KHR_fragment_shader_barycentric ↵Matheus Fermiano
listed RADV (Mesa 26.2.6) sets fragmentShaderBarycentric on a gfx90c iGPU (Vega 8, PCI 1002:15E7) that doesn't list VK_KHR_fragment_shader_barycentric, so per_vertex_inputs read true there. run_gpu_tests.py then didn't turn on --f16-interp-fallback and ps_interp_f16_high skipped; make_game.py reads the same field and would keep PerVertexKHR inputs the device can't run. The feature now counts only with its extension in the device's list. The gfx90c/RADV measurement goes into docs/testing.md. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 daystests: GPU readback for dynamic 64-bit vector shifts (GPU-VALU64-SHIFTS)JiyouProt
Exercise boundary counts and overlapping destination registers with runtime inputs. AI-assisted with Codex.
11 daysdocs: fix GPU result submission instructionsPuttergill
11 daysdocs/testing.md: the cs_dpp_ops MoltenVK 1.4.2 row is fixed in the ↵Stephan2620
translator (SHADER-529) The Known problems row still sent Mac users to MoltenVK main or KosmicKrisp. Since #3227 the DPP lowering stores its ballot and shuffle to variables of their own, and the MSL MoltenVK 1.4.2 generates from current main runs both as statements in every lane. The row now says so, and that a pass on a Mac does not prove it: an Apple M5 Pro gives the right words with 1.4.2 even when the ballot sits on the right of &&.
11 daysbuild scripts: refuse a folder with % in its path up frontlines9686-rgb
cmd.exe expands %...% on every line of the generated _build.cmd (twice on a CALL line), and cl.exe rejects a % in the path-valued /D definitions of the runtime's test targets (D8038) however it is quoted, so a checkout with % in its path failed in configure, or a few hundred Ninja steps in once the batch was escaped (@ezbyDev's measurements in the original repository). build_runtime.ps1 now stops before looking for Visual Studio when the checkout path has a %, and build_llvm_mc.ps1 when -Temp has one, each naming the folder; docs/testing.md gets a Known-problems row. tests/test_build_percent_path.py runs both scripts with such a path, with git, python and vswhere hidden so that a missing check can't start a real build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 daysfix(linux): find a versioned llvm-mc and give Linux install hintsbhimio rice
Debian and Ubuntu's llvm-<N> packages install llvm-mc only as llvm-mc-<N> and /usr/lib/llvm-<N>/bin/llvm-mc. With LLVM_MC unset, the build looked for the plain name alone and stopped with Windows advice (scripts\build_llvm_mc.ps1, WSL), while tests/conftest.py already found the versioned install, so the pytest suites passed where make_game.py failed. mc_command() now keeps the plain llvm-mc when it is on PATH (the name a work folder's disassembly record holds) and otherwise takes the newest versioned install, by version number. install_hint() gives each OS its own advice; the preflight, shader_disasm.py and not_found() use it, and the SPIRV-Tools hint names the distribution package off Windows and macOS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMake main's tests green, part 2: docs drift, bvh_slot_check, ↵AlxcBTW
find_hash_lookup (#10002) Seven more test files that fail on main at d083a2c, after #9896: - test_docs_repeated_lines: tests/semantic/README.md's command block is a fenced block, which the check skips; its indented form put two lines with the same 40-character opening three lines apart - test_docs_repo_paths: docs/retail_boot_intel_host.md names #8554's frame-loop notes instead of a path that is not in the tree - test_docs_env_vars: runtime/README.md documents LEONIDA_RNG_SEED (runtime/shims/bcrypt_rng.cpp) - test_docs_design_rows: docs/README.md gets one row each for strand_grooms.md and ped_catalogues.md (two rows each were merged in), and design.md escapes the pipe in `prim_cnt << 12 \| vtx_cnt` - test_docs_cli_flags: docs/testing.md passes llvm-mc through LLVM_MC, so `brew --prefix` is no longer read as a bench_wave64.py flag; pt-PT's quickstart points to the web checker that replaced tools/pc_checker.py (5125a01), as README.md does; the spirv-opt passes docs/embedded_shaders.md quotes join FOREIGN - test_bvh_slot_check: bvh_match.model_geometries() yields six fields since the render bucket was added; unpack the two it needs - test_joaat_agreement (find_hash_lookup's half): hash over the Latin-1 bytes like hashdict.joaat, as #6254 and #7820 proposed Still red, for a separate change: test_joaat_agreement's leonida_mods half (it hashes UTF-8 bytes like runtime/src/mods.h, so both sides change together), test_f64_conversion and test_f64_output_modifiers (they expect the output scaling #6314 gated by MODE) and test_bvh_shaders_stage.
12 daysMerge upstream main and preserve 1D UAV clear compatibilityold-pr/9948Almogaver295
12 daysMerge remote-tracking branch 'origin/pr/9758'ItsNotRexed
# Conflicts: # tests/test_pc_checker.py # tools/pc_checker.py
12 daysRemove pc_checker.py and point to web checkerorstro
Removes tools/pc_checker.py and its test, and updates README and docs/testing.md to link to https://assttro.github.io/can-i-run-leonida/ as a lightweight browser-based alternative. Closes #9711
12 daysMerge PR #9584ItsNotRexed
12 daysMerge PR #9574ItsNotRexed
12 daysdocs: run Windows CI artifacts under WineSkippySteve
12 daysUpdate testing documentation for Windows buildsMonke
Clarify test program registration conditions and prerequisites for Windows builds.
12 daysbench_wave64: add emulated-only mode (BUILD-3860)Dario Garcia
12 daysdocs/testing: name tools/pc_checker.py as the CPU/GPU/RAM report for #166 ↵evilclanker9000
(EGEN-PCCHECKER-DOC) (#6594) Squash-merged after diff review of PR #6594
12 daysdocs/testing: note KosmicKrisp nir_to_msl NaN canonicalization in cs_bvh (#6627)Codimation
Squash-merged after diff review of PR #6627
12 daysdocs: the AMD driver took 34 minutes on LeafRehydration's dispatch-loop ↵Emma
module; the current translation compiles in 3 s (SHADER-995) (#6739) Squash-merged after diff review of PR #6739
12 daysBarycentric fallback on by itself on AMD's Windows driver for gfx90c (#5933) ↵Vicente Pacheco Aguilera
(#6828) Squash-merged after diff review of PR #6828
12 daysrun_gpu_tests, rdna2spirv: support --assembler python, --no-validate, and ↵sanchaton
--disasm-dir (#6676) Squash-merged after diff review of PR #6676 - run_gpu_tests, rdna2spirv: support --assembler python, --no-validate, and --disasm-dir
12 daysdocs/testing.md: which Known problems rows the game's shaders reach ↵abilliontokens
(op_reach --fssm, name patterns) (#6818) Squash-merged after diff review of PR #6818 - docs/testing.md: which Known problems rows the game's shaders reach (op_reach --fssm, name patterns)
12 daysruntime: a timed condition-variable wait releases its mutex on Wine 9 (#6847)Geremy Cambus
Squash-merged after diff review of PR #6847 - runtime: a timed condition-variable wait releases its mutex on Wine 9
12 daysTEST-468/469: GPU test tools request shaderInt64 only when a module declares ↵Dimitrije Šovljanski
Int64; vk_bindless_test honours LEONIDA_VK_DEVICE (#2647) Squash-merged after diff review of PR #2647
12 daysdocs: show how to run one CI GPU test on Windows (#6309)heykz
Squash-merged after diff review of PR #6309 - docs: show how to run one CI GPU test on Windows
12 daysd3d12_buffer_tiles: compare the layer with its own adapter's D3D12 (#6334)evilclanker9000
Squash-merged after review of PR #6334 - d3d12_buffer_tiles: compare the layer with its own adapter's D3D12
12 daysdocs/testing: a Known problems row for GPU tests that crash on an uninvited ↵evilclanker9000
implicit layer (#6317) Squash-merged after review of PR #6317 - docs/testing: a Known problems row for GPU tests that crash on an uninvited implicit layer (EGEN-FPSMON-LAYER-ROW)
12 daysRuntime: D3D12 queues share a VkQueue when the GPU has no free one (Intel ↵tedin7
UHD 770 queueCount 1), plus a CPU-signal hang fix (#5110) Squash-merged after review of PR #5110 - Runtime: D3D12 queues share a VkQueue when the GPU has no free one (Intel UHD 770 queueCount 1), plus a CPU-signal hang fix
12 daysci_expected_failures: --help works and a bad argument is one error line with ↵evilclanker9000
exit 2 (EGEN-CIEXPECTED-CLI) (#6320) Squash-merged after review of PR #6320 - ci_expected_failures: --help works and a bad argument is one error line with exit 2 (EGEN-CIEXPECTED-CLI)
12 daystest(vulkan): exercise D3D-78 texture UAVs in the GPU runnerAlmogaver295
Register the descriptor smoke test with CTest and run synthetic dispatches against the real bindless set and WARP. Cover sliced-volume atomics, typed mip loads, and runner failure/skip handling; document the ABI, limits, and test procedure. Reconstructs 6429d472, 8dc50af2, and the test and documentation resolutions through a56b8589.
12 daysDocs after round 44: one row per topic, escaped literal pipes, one copy of ↵ItsNotRexed
each repeated line and list item, one i18n row per language Also: #2490's committed conflict markers in fssm_crosscheck.md resolved to main's text, the SHADER-605 section moved below the troubleshooting table it split, a header rule for the export-format table, two backticked paths that name no Leonida file, and the BOM dropped from anim_move.py and its test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #4654 from Etr0pItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/design.md # docs/testing.md
12 daysMerge pull request #4614 from UlteriorMotive00ItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/testing.md
12 daysMerge pull request #4593 from Luiz NevesItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #4452 from YaBulochkaItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #4437 from RafaelItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/testing.md
12 daysMerge pull request #4388 from TG0000ItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #4259 from YaBulochkaItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #4042 from Jan TrencanskyItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/testing.md
12 daysMerge pull request #4005 from TreXitoItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #3982 from shelbykb2ItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #3972 from tedin7ItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #3857 from TreXitoItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #3855 from Oleg MakarovItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #3838 from AwkGrep256ItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #3837 from Maxime MansietItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #3830 from Sc4rosItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #3679 from Kevin MoralesItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #3260 from Kacper SerewisItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #3248 from 0xTehutiItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #3004 from Moaaz GewiliItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/design.md # docs/testing.md
12 daysMerge pull request #2909 from JolymmilesItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge pull request #837 from DANISBR1ItsNotRexed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/design.md
12 daysMerge main (2d3369a4) into test/877-compute-validationTreXito
vk_compute_test.cpp: keep both includes (vk_validation.h from this branch, cs_wave_probe_spv.h from main). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysdocs: the 128-byte push-constant limit on AMD RDNA2 iGPUs follows the driverEtr0p
docs/testing.md said AMD's Windows driver reports 128 bytes of push constants on RDNA2 iGPUs, as a property of the chips. A Radeon 610M on AMD 26.11.2 (Windows 32.0.21045.29003) reports 256, and the GPU suite runs there without the "need 144 push constant bytes" skip. Name the driver versions the 128 figure was measured on, in docs/testing.md, the --pc-tail-ubo row of docs/design.md and the D3D-14 paragraph of docs/d3d12_vulkan.md, and add the 26.11.2 measurement. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
12 daysTests: check Microsoft's recorded answers where Wine and Proton have no ↵Kevin Morales
reference Under Wine the host D3D12 is vkd3d and under Proton vkd3d-proton, and Proton's EnumWarpAdapter returns the hardware adapter, so the host and WARP references six tests compare with are not Microsoft's runtime: d3d12_r9g9b9e5_uav, d3d12_method_variants and d3d12_sampler2 fail under Proton (the last two crash inside vkd3d-proton), d3d12_fence_timing and d3d12_subresource_copy under both, d3d12_private_data under Wine. The six skip the host comparison there with hostwine::host_is_wine() and check the layer against Microsoft's answers recorded in the test instead, so Wine and Proton still check values. d3d12_r9g9b9e5_uav gets WARP's words for its six clear cases, from the packing rule in docs/d3d12_vulkan.md. d3d12_subresource_copy and d3d12_private_data get answer tables, taken from the records that Windows runs on NVIDIA and AMD compared with Microsoft's runtime with no mismatches; LEONIDA_D3D49_DUMP=1 prints the host's record on Windows to regenerate them. The other three already had recorded answers. Windows still compares with the live runtime too.
12 daysdocs/testing.md: Known problems row for the AMD Windows native wave64 ↵UlteriorMotive00
shuffle miscompile (#4613) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysdocs/testing.md: the cs_signed_zero_nan Mesa bug on RADV 25.0.7, ANV and ↵Luiz Neves
llvmpipe 26.0.8 (PROC-227) The Known problems row named RADV on Mesa 25.2/25.3 and llvmpipe. It adds the measurements since: RADV 25.0.7 on an RX 7800 XT (@mrbean56, #4421), ANV 25.2.8 on an Intel UHD 630 (@theswiss24, #4571), and llvmpipe on Mesa 26.0.8, which still gives word 5 = 0 (not judged there by check.py). The cs_w32_salu64 half is ACO's, so only RADV has it.
13 daysdocs/testing: name the vkd3d-proton null-argument crashesYaBulochka
13 daysdocs(testing): run the Windows suite under Proton's wineYaBulochka
Prefix setup, the emulator flag and WINEDLLOVERRIDES in one place, with the measured result on Proton 11.0: 127 passed, 20 skipped, seven host-comparison failures against vkd3d-proton (two of them a crash in d3d12core.dll when the host device is created).
13 daysdocs/testing.md: a known problem, the RTX 5080 616.92 wave64-emulate ↵Rafael
crosslane mismatch is the driver (SHADER-720) @Vonsek's cs_xl64_9100373886 mismatch (seed 91001) fails only on an RTX 5080 with Windows 32.0.16.1692 (616.92). The same SPIR-V matches the model on an RTX 3060 616.64 (mine), RTX 5060 Ti 621.14 (@etcetera-yt), RTX 5070 Ti 621.24 (@Kam471) and an RTX 5080 with Linux 580.65.06 (@tedin7). The row names the fix (621.14 or newer) and @tedin7's related Linux wave32 permlane cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 daysdocs: required subgroup stages per AMD GPU generation; RDNA2 on Windows ↵shelbykb2
can't require pixel or mesh sizes The "Which stages can be required" row in d3d12_vulkan.md said the AMD Windows driver reports FRAGMENT | COMPUTE | TASK | MESH, from a Radeon 880M (RDNA3.5). On an RX 6800 (RDNA2, gfx1030) with the same 26.11.2 release (Windows driver 32.0.21045.29003) it reports COMPUTE only, sizes 32..64, default 64, measured 2026-11-22. The row is now per GPU, with the 880M kept, the RX 6800 measurement, and @AC-Storm-YT's 9800X3D iGPU (RDNA2: COMPUTE only) and RX 9070 XT (RDNA4: all four) from #313. Measured on the RX 6800: no size can be requested for pixel or mesh shaders, and at the default a probe pixel shader counts 64 live invocations per subgroup (SPIR-V 1.5 and 1.6); ms_w64x_ballot passes natively. In ps_bitmask_perm lanes 32-63 (2,048 of 4,096 pixels) read v_mbcnt_lo = 32; its check judges lanes 0-31 only. d3d12_subgroup_test, testing.md (tier C pixel fixtures skip here too) and the known gaps say the same. tools/wave32_pixel_scan.py counts the wave32 pixel shaders with lane-crossing or width-dependent instructions, by family (counts only; test: tests/test_wave32_pixel_scan.py). Control: 12,101 PS, 1,127 wave32, as in design.md. 1,010 have v_readlane/v_writelane/v_readfirstlane, 146 v_mbcnt, 105 s_bcnt1/s_ff1 of a lane mask, and all 1,127 an EXEC/VCC branch or mask SCC vote. Co-Authored-By: Claude Opus <noreply@anthropic.com>
13 daysfuzz: time out stalled Vulkan test processes in valu_fuzzTG0000