The test's paragraph now says the geometric oracle judges the layer alone,
that a native render failing it is reported as "host not comparable" with
its pixel counts instead of failing the test (the RTX 5060 Ti / Windows 10
case), and adds the RTX 3060 / Windows 11 run: 48 pairs on Vulkan and
native NVIDIA.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All 161 local-space non-grid meshes put their x/y vertices on one of the three
nonzero fNavOverrideRecastCellSize values; the 9 on the odd 0.0325 share one
54 x 159-cell footprint and match 3 documents. No mesh holds a model-name hash.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hooked PSO gets its own vtable back as soon as its name is logged (the
rest after the constructor returns), so the destructor never sees the
9-slot copy. find_pso searches newest first and skips restored entries,
the named count is of distinct creations, g_in_set_name is thread_local,
and the doc says what was measured about PostBuildInfoQuery.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v_cndmask_b32 read its sources with src_u, whose modify() applies VOP3
abs/neg through SPIR-V FAbs/OpFNegate. Those may quiet a signalling NaN
(the mini interpreter does: -v1 of 0x7F800001 came out 0xFFC00001) or
flush a denormal, which a bit move never does. The sources now go
through src_u_sign_mods: abs clears bit 31 and neg flips it on the raw
bits, as the translator already does for v_cmp_class_f32, whose input
modifiers are measured as sign-bit moves on gfx1036.
tests/semantic/test_cndmask_sign_mods.py: 15 words (signalling/quiet
NaNs, denormals, zeros, infinities, normals) x v, -v, |v|, -|v| x both
operands through the interpreter, no FAbs/OpFNegate in the module, and
spirv-val when it is on PATH. docs/design.md: the contract row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The GPU builder grouped four consecutive Morton-sorted elements per node,
level by level. Those groups ignore where the Morton prefix changes, so
sibling boxes overlapped and a ray took about twice the traversal steps.
It now builds a binary radix tree over the same sorted keys (Karras 2012,
ties broken by sorted position) and keeps the inner nodes at an even depth
as the BOX32/BOX16 nodes, each taking its children's children (2 to 4),
numbered in sorted order by a scan (root = node 0). Boxes are filled by one
bottom-up pass: each element writes its slot box and merges it into its
parent's accumulator with atomics; the last child to arrive carries on.
The arrival counter's atomicAdd has acquire-release semantics instead of a
memoryBarrierBuffer, since the pass is divergent and SPIRV-Cross before
MSL 3.2 lowers memory barriers to threadgroup_barrier. Refit reuses the pass
through the parent table.
TRI1 pairing (#3315) pairs triangle children of one node; the build records
each element's tree pointer so a paired sibling finds its TRI1 slot. The
node count depends on the keys: the layout reserves (3N - 2) / 4 nodes, the
header counts the nodes written (plus the BOX16 spare unit after the last
one), so compaction gives the rest back. Refit copies a source by its
header size. check-build reports traversal steps per ray.
Steps per ray: 5,000 random triangles 42.0 -> 23.0, BOX16 43.9 -> 23.7,
paired 7,200-triangle grid 37.6 -> 19.5. Build 1M triangles: RTX 5090
5.50 -> 5.99 ms, Radeon gfx1036 iGPU 133 -> 180 ms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LEONIDA_BVH_RECORD62=1 now prints the unwound call site (offsets from the
DLL base, with function starts from the unwind tables) and the name the
builder gives the returned PSO through SetName/SetPrivateData. Measured:
#47 and #53 are both "XDXR GetBVHCompactedSize", one PSO created twice from
FUN_18001d400; no creation is named PostBuildInfoQuery.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lines 31, 33 and 90 still said "rejected". The Dest alignment check (0x216a0) and
the Inputs.Type check (0xcc00) throw through the same _CxxThrowException thunk as
0xe6a0; only ValidateRehydrateAccelerationStructureBuildDesc returns the HRESULT.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TheMrBeez ran image_bvh_intersect_ray and image_bvh64_intersect_ray through
tools/hw_oracle on gfx1036 over hand-built box32 nodes: dword0 (P >> 8) + 0x10
with node 0|5 and (P >> 8) + 0x08 with node 0x800>>3|5 both traverse the node at
P + 0x1000, so address = base * 256 + (node & ~7) * 8 and the base and the node
offset add; the control reads the decoy. Recorded in bvh.md 7b. The Ray tracing
row drops the "a GPU can't confirm the rule" sentence: it was about the triangle
rule, and hw_oracle can run the native instruction, so that measurement is a
follow-up rather than an impossibility.
Docs only; test_docs_links, test_docs_repo_paths, test_docs_design_rows,
test_docs_table_rows and test_docs_list_items pass.
- Create the --out parent folder before writing the report.
- Close the title's stdout pipe when the reader thread finishes.
- Count a check as different when the status or the reason differs.
- Move the hang restart loop into run_with_restarts and test it with a stand-in title.
- kill_tree falls back to Popen.kill outside Windows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KHR TLAS builds hardcoded arrayOfPointers = VK_FALSE and passed the guest's console-VA pointer list straight to Vulkan. Carry DescsLayout into the recorded build, validate each pointer, stage a copy with heap_base added into a device-addressable buffer, and use it as the build input. The guest input is not modified and GPU-written pointer lists are refused. Adds ARRAY and ARRAY_OF_POINTERS RayQuery coverage plus a null-entry refusal check.
The three rows said "Not GPU-verified" with no hardware data. Measured on native RDNA2 (gfx1036) through
tools/hw_oracle: 112 + 20 + 39 directed one-thread cases match each row's rule, pk16_diff agrees on 3000
programs, and two 32-lane collision kernels show the LDS ops run lane by lane: ds_mskor ends where the
two-atomic emission would not, and ds_xor_rtn_b64 never returns a half-done pair.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gameinput_probe with a DualSense (054c:0ce6) over USB on Windows 11: it
connects with trigger effects and gyro, each of the 14 gamepad buttons
sets its own bit of the mapping table, triggers and sticks reach full
scale, the accelerometer clamps at 1.00 on a hand shake, and the raw HID
tables and a changing raw input report are there. Rumble, trigger effects
and the lightbar are as reported by the person holding the pad.
Bluetooth, the resistance trigger mode, a DualShock 4 and a Switch Pro
are still to confirm.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A new "ABI over the archive" subsection gives the HBINK fields (width
+0x00, height +0x04, frames +0x08, current frame +0x0c, playback rate
+0x14/+0x18, audio tracks +0x38) and the BINKSUMMARY ones (144 bytes;
width +0x28, height +0x2c, file rate +0x34/+0x38, playback rate
+0x3c/+0x40, frames +0x48), each matched on all 515 streams, and the
return values: BinkDoFrame and BinkCopyToBuffer 0 on every call, BinkWait
0 before the first frame and 1 when called before the next is due.
Section 5's ABI bullet and the decode-evidence bullets now point there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The "Mesh shaders" row said 1,473 of 1,500 sampled mesh shaders read exactly
v5 and the rest only add loop-carried registers. Over all 8,666 MS listings
of 1.0.2.1, on the code translate() keeps, all 8,666 read exactly v5. Read
raw, 246 of the 289 listings with embedded data words seem to read more, but
none of those registers is written after the read: the reads come from data
words decoded as instructions and vanish after re-anchoring and the
reachable-code cut.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Clarify RDNA2 ISA status: GFX10.3 dropped reversed 16-bit integer subtraction (v_subrev_nc_u16 / v_subrev_nc_i16 do not exist on hardware; v_subrev_f16 is the only 16-bit reverse subtract opcode).
- In tools/rdna2spirv.py, correctly identify VOP3 encoding for 16-bit integer ops when 32-bit literal operands extend the instruction to 12 bytes, preserving the untouched destination half.
- Guard against non-VGPR destination when op_sel writes to destination high half.
- In tools/int_hw_probe.py, add v_add_sub_nc_i16_clamp covering signed saturation to [-32768, 32767], op_sel source selection, and untouched half preservation.
- In tests/semantic/test_alu_subrev_f16.py, add test_vop3_omod_and_clamp.
- In tests/semantic/test_valu_add_sub_nc_i16.py, add coverage for SGPR sources, literal constants, high-half preservation, and non-VGPR op_sel destination rejection.
- Update docs/design.md row 261 with RDNA2 ISA details and probe status.
main split x_scheduler into x_prologue and x_round_loop_head and added structured
emulation (x_mini_scheduler, the x_pre_* helper functions). The one-writer clears
are ported to all four places that stored to the sink word. The helper functions
now have a selection, so the inliner of tests/semantic/test_wave64_emulate_opt.py
keeps their labels, and its lockstep interpreter fails when two invocations store
to one %x_buf word between two barriers.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The estimates join the performance-map table only loosely and the quarter-mile time collapses to 6.73 + 401.0/v_top (R2 0.99998); ratings are deterministic functions of the estimates. Handling inputs are absent from the readable archives, so the handling fit cannot be verified.
movies.md says the bink_index counts for movies.rpf are derived, not a rerun, and names the 8 undecided
archives; rpf.md's small-block entropy wording; bink_index drops a redundant max().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In movies.rpf the 22,812 bytes after the last Bink stream are 3,884 zeros up to a 4 KiB boundary and then
exactly the header's u32 +12 (18,928) bytes to EOF. Over the package's 22 RPF9 archives the same holds in 14
(10 page-aligned after zero padding, 4 found by walking 16-byte-aligned zlib streams to the end); the other 8
end in a non-zlib file and can't be checked without the TOC. None contradicts it. bink_index.py counts the
trailer as rpf_trailer instead of unread.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first version said "the same chip": the RADV runs are on another gfx1036 (a Ryzen 9 7950X3D's), where the two
Windows reports are a Ryzen 7 9700X's and one more. The 96 wrong words are lanes 32-63 of each wave on
32.0.21045.16010 and lanes 0-15 and 32-47 on 32.0.21042.62.
Added, measured here:
- the reported program and its 12-instruction reduction are exact natively under RADV as 192 threads and as one
64-thread group, with the driver's default subgroup size and with vk_compute_test --require-wave64 (the fuzzer's
native run does not request a subgroup size, so the Windows driver with --require-wave64 is listed as not checked);
- over the 26,503 shaders of the game, 2,293 use v_permlanex16_b32 and 27 a DPP op with a partial row_mask; 6 have
both, all wave32 compute, and in none does the shuffle read a register such a DPP op wrote last.
The "what to do" cell no longer recommends --wave64-emulate on: auto stays native on AMD's Windows driver for
RDNA1/2 because that driver can crash on emulated LDS code (#857).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
OptInValidation reads LEONIDA_VK_VALIDATION, adds VK_LAYER_KHRONOS_validation, VK_EXT_debug_utils and
a messenger to the instance (keeping what the program already enables), counts validation-type
errors and turns them into the exit status. vk_compute_test uses it instead of its own copy, so the
other shader test programs can opt in with a few lines. docs/testing.md also no longer lists
vk_image_fuzz as a program that ignores the variable (it reads it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vk_compute_test created its instance without layers and ignored LEONIDA_VK_VALIDATION, and a
validation message never changed its exit code, so scripts/run_gpu_tests.py could not catch what
GPU-assisted validation finds in the compute fixtures (SHADER-708 only showed up with
VK_INSTANCE_LAYERS set by hand).
With LEONIDA_VK_VALIDATION=1 it now enables VK_LAYER_KHRONOS_validation and a debug messenger the
way vk_bindless_test does, prints each message to stderr and counts validation-type errors. main
wraps the old body, so every path (including errors GPU-AV reports when the queue finishes) ends
with "N validation errors" and exit 1. Without the variable nothing changes. docs/testing.md says
so, and no longer lists vk_bindless_test as a program that ignores the variable (it reads it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 57 pools have 51 distinct basenames, and rpf9dump writes a pool's
catalog to <output root>\<basename>, so one shared output root lets later
pools overwrite earlier catalogs. The recipe now gives each pool its
package-relative parent folder as output root, and the lookup compares the
catalogs' src paths with the enumerated pools instead of counting files.
Also drops a duplicated Python block in the same recipe section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
crosslane_fuzz.py --wave 64 --w64-native --dpp --no-maskdata --seed 82001 --programs 600 gives one native
mismatch on a gfx1036 integrated GPU with AMD's Windows driver (cs_xl64_8200346406, 96 words of v5; found by
Vonsek, reduced to 12 instructions by zzEmmazz). The same run is exact on the same chip under RADV (Mesa 26.3.1)
and on an RX 7900 XTX under RADV: 454 match, 0 mismatch, 146 hyp_only, natively and emulated; the program alone
and its reduction give 0 of 2,688 words off natively on both; and the hardware oracle on that gfx1036 matches
the model in all 600 programs.
docs/testing.md gets a "Known problems" row with the affected driver versions and the working setting
(--wave64-emulate on), and docs/shader_validation.md records the measurements in the FUZZ-7 section.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Silliana tested type 0 on #3157: the low half is the sphere radius (closest
point on the light along the reflection ray, brightness with radius^2:
60 -> 5 dimmed ~134x, 144x expected) and the high half has no effect. The
section is now a table per light type; the axis-length path is marked as a
likely tube length, untested, and the range reading is dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/mask_channels.py counts per-channel range, coverage and 4-connected blobs of a DDS export.
On the ped dirt mask: alpha constant 255; G a soft layer (never below 90) used alone by the
dusty/urban entries; R broad (92% one blob at >=64) used alone by snow; B speckled (7.6x R's
blobs) used alone by the spotty entry. The reversed order contradicts both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One add / subtract of the wave's active-lane count at the offset address,
done by the first active lane; the old value to every active lane by a
subgroup shuffle (an exchange round under --wave64-emulate). Measured
natively on gfx1036: the offset alone is the address, M0 does not move it.
The gds form stays Unsupported. GPU fixtures cs_w32/w64_ds_append, semantic
test test_ds_append.py, design.md row.
AI-assisted.