| Age | Commit message (Collapse) | Author |
|
|
|
scripts: red_green.py tells a crashed compiler from a build error (TEST-RED-GREEN-COMPILER-CRASH)
|
|
docs: update agent/contributor standards, fix stale references, and consolidate docs
|
|
docs/testing.md: the Windows runtime tests under Wine on a Mac (WineHQ build, ROSETTA_ADVERTISE_AVX)
|
|
docs/testing.md: three more KosmicKrisp failures from its (NAN) constant printing
|
|
|
|
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)
|
|
(#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
|
|
(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.
|
|
(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.
|
|
filters
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
docs/testing: red and green of a runtime pull request on your fork's CI
|
|
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.
|
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
--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>
|
|
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>
|
|
|
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
docs/testing: record the two ps_* KosmicKrisp NaN cases
|
|
docs(testing): note V100 cube-store failure
|
|
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.
|
|
# Conflicts:
# docs/design.md
|
|
rdna2spirv: --mesh-serial-waves under --mesh-compute too (SHADER-W64-MESH-SERIAL-COMPUTE)
|
|
tests: build.py and check.py pick the f16 interpolation fallback from the device (TEST-CHECK-F16-FALLBACK)
|
|
run_wine_session: initialize and stop the prefix with $WINE (OLD-9952)
|
|
docs/testing: known-problems row for the four newer compute fixtures on an Arc 140T (ANV 25.2.8) (OLD-9810)
|
|
docs/testing: one copy of the fused multiply-add section (DOC-TESTING-FMA-DEDUP)
|
|
docs/testing: three tests that fail only under GPU-assisted validation, and why (DOC-GPUAV-LAYER-FALSE-POSITIVES)
|
|
docs/testing: known problem, cs_fmt_int_narrow on Intel ANV Mesa 25.2 (TEST-1000 denormal flush, + Xe2/ARL evidence)
|
|
|
|
runtime: stop the configure when Vulkan headers are too old for the Windows runtime (OLD-9998)
|
|
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)
|
|
# Conflicts:
# docs/testing.md
|
|
# Conflicts:
# .github/workflows/runtime.yml
|
|
tests: cs_fma_fused takes its f16 operands at run time, like its f32 ones (TEST-FMA-FUSED-F16-RUNTIME)
|
|
vk_model_fuzz: judge pk16_diff, vint_diff and sdwa_diff on any Vulkan GPU against their reference model (VK-MODEL-ORACLE)
|
|
docs/testing: a Windows quick start and how to test someone else's PR (DOC-TESTING-WINDOWS-QUICKSTART)
|
|
DOC-WINE-ARTIFACT: fix the runtime-windows download command
|
|
tools: provide one-command synthetic source-only smoke suite (DX-07)
|
|
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>
|
|
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>
|
|
(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>
|
|
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>
|
|
|
|
(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>
|
|
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>
|
|
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>
|
|
build, ROSETTA_ADVERTISE_AVX)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
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>
|
|
KosmicKrisp are its (NAN) constant printing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
(DOC-TESTING-FMA-DEDUP)
Two copies of the cs_fma_fused paragraph were interleaved by a repeated merge: the RADV
sentence twice (2426df3d5 and its em-dash revision 53bc2c494), "operands taken from user
SGPRs" twice, Intel UHD Xe-LP and LEONIDA_FMA=exact each described twice. Keep one of each.
No number, driver version or device changes. The kept wording matches check.py's
judge_fma_fused: under --fma glsl each f32 word may be fused or split, so the older copy's
"failing cs_fma_fused with glsl" is now "give the split value". Dropped only the superseded
draft clause "(reusing the live a * a product in v3)", which its own author revised away.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: coolpilot904 <andrewjsottile@icloud.com>
|
|
# Conflicts:
# tools/vk_subgroup_info.py
|
|
|
|
DOC-GPU-COORDINATION-LINK: Point GPU testers to the active coordination issue
|
|
docs/testing.md: Python 3.12+, as make_game.py requires (DOC-TESTING-PYTHON-MIN)
|
|
docs/testing.md: Known problems row for ps_imgatomic on MoltenVK 1.4.2 (DOC-IMGATOMIC-MVK)
|
|
jarvixaiassistant-glitch/fix/old-10045-vk-barycentric-ext
vk_subgroup_info: per_vertex_inputs needs VK_KHR_fragment_shader_barycentric listed (OLD-10045)
|
|
no test programs needed (SHADER-EXPLICIT-LOD-BIAS-MVK)
tools/vk_lod_bias.py clears a two-level R32_SFLOAT image to 0.0 / 1.0 and
samples it at explicit LOD 0 through samplers with mipLodBias 0 and +1, from
Python through ctypes. vk_subgroup_info.py --lod-bias reports the answer as
explicit_lod_bias; lod_bias_probe.py uses it first and draws ps_ssharp only as
a fallback, with the Homebrew llvm-mc hint when llvm-mc is missing (#1774
review). build.py and make_game.py can now measure too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
|
|
against their reference model (VK-MODEL-ORACLE)
The Vulkan run of these fuzzers (--oracle hw,vk) takes its expected words
from a native AMD GPU, so a contributor with an NVIDIA or Intel card cannot
use it. tools/vk_model_fuzz.py runs the programs the fuzzer generates for
the same seed through the translator and vk_compute_test and judges them
against the fuzzer's reference model instead. A program the model declines
is a skip and never reaches the GPU. No existing fuzzer is edited.
tests/test_vk_model_fuzz.py stands in for the GPU, so it needs no Vulkan
device; docs/testing.md has a short section next to the AMD hardware oracle.
|
|
keying --explicit-lod-bias on MoltenVK's driver ID (SHADER-EXPLICIT-LOD-BIAS-MVK)
The same MoltenVK 1.4.2 drops the bias on an Apple M3 and applies it on an
Apple M5 Pro (#1774 review), so the driver-ID rule turned ps_ssharp red on
the M5 Pro. tools/lod_bias_probe.py translates vs_ids and ps_ssharp without
the flag and draws LOD_BIAS 0, +1 and -1 with vk_sampler_test; the flag is
on only when +1 and -1 read the no-bias levels. run_gpu_tests.py, build.py
and make_game.py take its answer; vk_subgroup_info.py is back as on main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
|
|
runtime
Any vulkan/vulkan.h used to be accepted, so headers that are too old (conda-forge's
vulkan-headers resolves to 1.3.231 next to llvm-tools) configured fine and then failed
deep in the build: d3d12_com.h(42) "'calibrated': unknown override specifier" and 100+
errors in d3d12_vulkan_device.cpp, or VkPhysicalDevicePipelineBinaryFeaturesKHR in
vk_harness.cpp.
runtime/cmake/vulkan_headers_version.cmake reads VK_HEADER_VERSION from the headers
Vulkan::Headers points at (FetchContent's $<BUILD_INTERFACE:...> unwrapped) and fails
with the found and needed versions and how to fix it. The minimum, 294, is measured by
building the whole Windows runtime against Khronos header tags: v1.3.294 and SDK
1.4.304.0 build all 555 targets, SDK 1.3.280.0 all but vk_harness, 1.3.231 stops in the
D3D12 layer. Only Windows-runtime configures check, so the portable Linux/macOS tool
builds keep accepting older distribution headers.
tests/test_cmake_vulkan_headers_version.py runs the module with cmake -P on stub
headers and checks that the FetchContent and CI pins meet the minimum.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
an Intel Arc 140T (ANV 25.2.8)
|
|
MoltenVK drops the sampler's (SHADER-EXPLICIT-LOD-BIAS-MVK)
MoltenVK 1.4.2 drops VkSamplerCreateInfo::mipLodBias from both explicit and
derivative-LOD samples, so ps_ssharp's S# LOD_BIAS cases fail on every Mac.
With the flag the translator adds the S# bias (word 2 [13:0], signed 5.8) to
explicit LODs and to _b biases, as a Bias operand on implicit samples, and as
a 2^bias scale of Grad derivatives. tools/vk_subgroup_info.py reports
explicit_lod_bias for MoltenVK's driver ID, and run_gpu_tests.py, build.py
and make_game.py turn the flag on from it. ps_ssharp gains +-0.3 cases, which
fail when the bias counts twice.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
commit
Rezn0r27's review on #1727: an older run_gpu_tests.py rejects options the quick start shows. Point artifact users at their commit's page and at --help.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
(DOC-TESTING-WINDOWS-QUICKSTART)
Five steps from a fresh Windows PC to a gpu-test-results record: what to
install, build_runtime.ps1, the native and LEONIDA_W64_EMULATE=1 runs, the
commands that collect GPU, driver, subgroup range, OS build and commit, and
which existing record to copy. Links to the detailed sections instead of
repeating them. Follows a first-time run on an RTX 4060 (NVIDIA 621.14).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
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>
|
|
tests: GPU readback for 38 scalar ALU ops on run-time operands (GPU-SALU-EXT)
|
|
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>
|
|
why (DOC-GPUAV-LAYER-FALSE-POSITIVES)
vk_command_replay (parts H and I) and depth24_convert report
VUID-vkCmdCopyBufferToImage-pRegions-07931 for depth data that is in range,
and pipeline_cache_seed misses its cache, when the Khronos layer runs with
GPU-assisted validation. The Known-problems row says what the layer does
(read in its source, confirmed by turning the one check off) and which
setting to use for the run.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
|
"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+.
|
|
(denormal flush; TEST-1000 + Xe2/ARL evidence)
One Known-problems row. The mechanism paragraph and the Gen9 measurements are
theswiss24's TEST-1000 diagnosis (old repo PR #4736, never merged before the repo
closed); this carries it and adds the Arrow Lake-H Arc 140T datapoint: the same
three-word signature (words 34, 49, 129) at ANV 25.2.8, both subgroup modes,
and all 136 words passing once DenormPreserve 32 is added by hand.
AI-assisted.
|
|
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)
|
|
#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>
|
|
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>
|
|
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>
|
|
tests: GPU readback for the binary64 vector compares, v_cmp_*_f64 and v_cmpx_*_f64 (GPU-CMP-F64)
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
run_wine_tests: keep one wineserver, disable winedbg, add --jobs (TEST-WINE-FAST)
|
|
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>
|
|
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>
|
|
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>
|
|
(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>
|
|
|
|
The session script ran wineboot and wineserver from PATH while
run_wine_tests.py runs the tests with $WINE. With WINE set to Proton's or
UMU-Proton's files/bin/wine, the prefix was initialized by another Wine, or
the script stopped at 'wineboot: command not found' on a host without a
system Wine, and the exit trap stopped the wrong wineserver.
Run "$WINE" wineboot --init and stop $WINESERVER, else the wineserver next
to $WINE, else wineserver on PATH; report a missing $WINE with status 127.
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
|
|
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>
|
|
AMD's 23.20.44 Windows driver (SHADER-BARY-RAPHAEL-OLD-AMD)
On a Raphael RDNA2 iGPU (Ryzen 7 7700, PCI 1002:164E) under AMD's proprietary Windows driver 31.0.22044.1 (Vulkan driverVersion 2.0.283, driver info and compiler 23.20.44), the GPU test ps_bary reads a wrong third BaryCoordKHR component (0.992 where 0.0039 is expected), and it passes with LEONIDA_BARY_FALLBACK=1. barycentric_fallback now returns true for that PCI ID under VK_DRIVER_ID_AMD_PROPRIETARY only while driverVersion is at most VK_MAKE_VERSION(2, 0, 283); newer drivers, other RDNA2 devices and RADV keep native barycentrics. query() reads driverVersion from VkPhysicalDeviceProperties and passes it on; an unreported version (0) takes no fallback from this rule. LEONIDA_BARY_FALLBACK=0 turns it off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|