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>
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>
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
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>
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>
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
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>
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>