Commit Graph

12 Commits

Author SHA1 Message Date
b5d15862fc docs: valu_fuzz --family f16 needs llvm-mc 21+; 18 runs the rest
docs/testing.md asks for LLVM 21+, but says a distribution's llvm-mc is
enough on Linux, and the fuzzer does not say what it needs. Measured with
Ubuntu 24.04's llvm-18 (18.1.3): valu_fuzz --family mem and lds_fuzz
assemble and run, but every --family f16 program fails, because 18
rejects op_sel on the 16-bit integer VOP3 forms; 23.1.6 assembles them.
Both places now say so.
2026-11-22 02:22:21 +00:00
9ccadeaeaf Merge pull request #622 from SirAmong 2026-11-21 21:08:33 -05:00
a518a2bbf2 docs: testing.md image_load row describes this runtime's real mechanism (PROC-16 review)
Second review of #622: the runtime never reads an image's size out of a T#.
A T# that was not registered (hand-built or zeroed) misses the descriptor
hash table, gets index 0, and index 0 is a 1x1 image of zeros, so even
pixel (0,0) reads 0 here. The "(0,0) only" pattern is from the reporter's own
layer and is now labelled as a report, not reproduced.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 21:00:03 -05:00
2b7c576eb6 docs: testing.md image_load row names the right mechanism (PROC-16 review)
The row said the shader bounds-checks image_load against the T# size. The
translator lowers image_load to OpImageFetch/OpImageRead and never compares
coordinates with the T# width/height; it is the runtime that takes the image
size from the T# (stored as size - 1), so a zeroed descriptor is a 1x1 image.
Wording from rafaelpssz's review of #622.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 20:42:36 -05:00
23020c40cb Merge pull request #622 from SirAmong 2026-11-21 20:38:59 -05:00
99960989cb docs: re-measure the llvmpipe counts in testing.md
Measured on GitHub's ubuntu-24.04 runner (llvmpipe, LLVM 20.1.2) on
main c432cdc, which already carries the wave32 lane-mask skip: 52/88
with 36 skipped, and 37/39 with 2 skipped under LEONIDA_W64_EMULATE=1.
Lists the new skips (ps_scc_mask32, ps_texoff, cs_wqm_w32,
cs_w32_lane_wrap).

AI-assisted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D7JEiKsTUaHQbCTdc4Eghy
2026-11-22 01:30:40 +00:00
78b8239761 docs: G-buffer targets stay 8-bit UNORM; image_load tests need a real T# size (PROC-16)
Two silent failures reported in #603 by @Silliana, written down as reports
(not reproduced here):
- d3d12_vulkan.md section 4.2: the material shaders pack normal/ID data into
  bytes and the lighting shaders unpack them with * 255 and a truncate, so the
  G-buffer targets must keep the game's 8-bit UNORM format.
- testing.md, Known problems: a hand-built descriptor with no real width and
  height makes image_load return zero except at pixel (0,0).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 20:17:48 -05:00
cfc314d233 Docs and CMake: the runtime needs the Windows SDK 10.0.26100 or newer
The runtime uses version 1.2 root signatures (D3D12_ROOT_SIGNATURE_DESC2),
which older SDKs such as 10.0.22621 don't declare, so the build failed
halfway through with a compiler error. The prerequisites now name the SDK,
docs/testing.md has a Known problems row for the error, and CMake checks
for it at configure time and stops with the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 20:03:14 -05:00
bd15303dc4 Merge pull request #430 from NRXM 2026-11-21 19:14:03 -05:00
49f4958a4b CI: run the GPU tests on Mesa llvmpipe
The linux-gpu-tools job built the GPU test programs but never ran them.
It now installs llvmpipe (software Vulkan), llvm-mc and SPIRV-Tools and
runs scripts/run_gpu_tests.py twice: natively (31 pass, 29 expected
skips: 8-wide subgroups, no fragment barycentrics) and the compute tests
with LEONIDA_W64_EMULATE=1 (33 pass). The emulated mesh tests are left
out because llvmpipe's compiler aborts on them. docs/testing.md gets a
section on running the suite without a GPU.

AI-assisted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D7JEiKsTUaHQbCTdc4Eghy
2026-11-21 23:39:29 +00:00
e0d68c8bb2 Docs: link the coordination issue by its title, not its number
The coordination issue (#156) will move to a successor when its thread
gets long. CONTRIBUTING.md, AGENTS.md, the PR template and the testing
guide now find it as the open issue titled "Coordinating who works on
what" (a search link, and a gh command for agents), so they stay right
without an edit each time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:11:59 +01:00
307d5e4c1a Docs: a guide to running the GPU tests
Collects what testers in #166 needed to find out themselves: llvm-mc
with the AMDGPU target per OS, building the test programs, the two ways
to run the suite, wave64 emulation on 32-wide GPUs (set
LEONIDA_W64_EMULATE for build.py too), choosing a GPU, and the problems
reported so far with their fixes. Linked from CONTRIBUTING.md and the
docs index.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:50:59 +01:00