Commit Graph

5744 Commits

Author SHA1 Message Date
7e1aecf0cb first_light: fix VKH_TSHARP_VA overflow guard, subgroup size, preview env, and test docs
Addresses @Kam471's review on #2806:
- Fix uint32 wraparound in VKH_TSHARP_VA bounds check (tsharp_va > heap_bytes - 32) so 0xFFFFFFE0 is rejected with exit 2 instead of writing OOB; add regression test in tests/test_first_light.py.
- Clarify exact test counts in docs/first_light.md (14 tests: 11 pass, 3 skip without LEONIDA_FIRST_LIGHT_DIR; 14/14 pass with LEONIDA_FIRST_LIGHT_DIR).
- Require --obj when --dds is passed so textured probes are always populated, include all texture env vars in the non---run preview command, and pass VKH_SUBGROUP_SIZE from manifest['ps']['subgroup_size'].
2026-11-22 21:06:15 +01:00
3763517741 First light: add textured draw path with T#/S# bindless set and CPU oracle (TEST-524)
Implements TEST-524:
- runtime/test/vk_harness.cpp: adds optional VKH_TEX_RGBA, VKH_TSHARP_VA, and VKH_SSHARP (inert when unset) to upload an RGBA8 texture to set 0 image index 1 (with 1x1 magenta fallback at index 0), write the 8-dword T# at VKH_TSHARP_VA in the 64 KiB heap, decode S# via gfx10_descriptors.h into sampler index 1, and bind DescriptorTable at binding 2.
- tools/first_light.py: adds --dds <path.dds> (decoding via tools/dds_png.py to texture.rgba), defaults --ps to PS_Copy_3ea4b38a_Wrapped (wave32, single image_sample_lz, compatible with DEFAULT_VS), reads ptr32_lo SGPR and literal_samplers from index.json, and adds a bilinear clamp-to-edge CPU texture oracle (centre_rgba + rgba_probes) in check_image.
- tests/test_first_light.py: shares fl.harness_env() so package-gated tests cover both untextured and textured runs, and adds 6 synthetic TexturedOracleTests (no GPU or game files).
- docs/first_light.md: documents the textured path and RTX 3060 verification (counts and hashes only; no game data).
2026-11-22 21:06:14 +01:00
064cd57817 docs: pin the 64-bit LDS bitwise rows to measured gfx1100 words
ds_and_b64, ds_or_b64 and ds_xor_b64 (and their _rtn_ forms) were the last "Not GPU-verified"
line in the LDS rows. 24 raw kernels on an RX 7900 XTX give M = M op DATA on the pair and the
old pair back from the returning forms, low and high dword checked separately.
2026-11-22 14:06:10 -06:00
c901fda139 Merge upstream main into sampled descriptor indexing fix 2026-11-23 06:06:06 +10:00
52384f93b0 docs/design: record the native RDNA2 measurement of the f64 round ops
@timelery measured v_trunc/ceil/rndne/floor_f64 natively on gfx1036
(tools/hw_oracle, wave32 and wave64 identical): exact IEEE-754 rounding
that keeps signed zeros and binary64 subnormals, NaNs unchanged under
IEEE=0, the hex literal dword in bits 63:32, and omod ignored under
denorm16_64=3 as for v_add_f64/v_sqrt_f64. The row said 'not measured
here'.
2026-11-22 23:05:58 +03:00
2704c78e8d chore(shader): merge upstream main into swizzle source masking
Keep the targeted regression and the intervening upstream changes together for review.
2026-11-22 21:05:55 +01:00
76d1add3da Merge origin/main into rt-175-raw-hid
Keep RT-160's force-feedback interface and tests next to the raw HID ones.
The raw HID test fakes are renamed (FakeRawHid, raw_*) so they no longer clash
with the haptic fakes. The API table gets one IGameInputDevice row with both
feature sets; the stale duplicate IGameInputDevice and IGameInputDispatcher
rows are dropped.
2026-11-22 23:05:47 +03:00
c64e9087b8 docs: record the measured EXEC masking on gfx1100
A VALU write under EXEC=0x0F leaves the other lanes untouched, EXEC=0 writes nothing, a store
writes only active lanes and v_cmpx_gt_u32 narrows EXEC. Also notes that AMD clang 20 will not
assemble the carry-out ops for any gfx11 target, which leaves the RX 7600 result below unexplained
rather than disproved.
2026-11-22 14:05:37 -06:00
7be6847cf0 d3d12: a pipeline registers its shaders' literal S#s
A shader that builds its S# from immediates (literal_samplers in the
translator index) names no heap slot, so nothing gave that S# a sampler
and a hash-table key: register_samplers (#1169) had no caller outside its
test. The shader's lookup found the fallback sampler and sampled with
the wrong filter and address modes.

ShaderLibrary now keeps each entry's literal_samplers, and
CreateGraphicsPipelineState / CreateComputePipelineState register those
of every stage that uses the bindless set.

Test: ps_m2_literal.asm (ps_m2 with the S# from s_mov literals) in
d3d12_m2_textured_test: no key for the words before its PSO, a sampler
index after it. Fails on main, passes here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:05:25 -03:00
781b0763a0 docs: the allocator note says how the exports were read, and points to §3.5
From the review on #3192: the FSR DLLs' exports are named and the tool that
listed them (dumpbin /exports) is given, so the measurement can be repeated,
and what §3.5 already says is a pointer instead of a repeat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:05:23 +01:00
a1f6db98f9 chore(shader): merge upstream main into half-precision fract
Keep the targeted regression and the intervening upstream changes together for review.
2026-11-22 21:05:16 +01:00
217e2f4631 PROC-148: document the ACES LUT bakes' and sky passes' inputs
Move @Silliana's notes from #1896 and #1897 into docs/shader_inputs.md,
checked against the ten postfx_aces bakes and the sky_scattering /
scattering_transmittance_system passes (offsets and counts only).

- ACES: the quasi-log addressing holds in all four QuasiLog bakes. The
  RRT spline is a constant table in the program, not an input. The
  tone-curve spline at +0x00 is in reference c9 order. Only the
  TonemapOnly bakes' second spline at +0x70 is points-first, and +0x118
  picks between the two. +0x13C selects per-channel vs luminance mode.
  It does not switch the curve off.
- Sky: Transmittance, then MultipleScattering (samples one table), then
  SkyAtmosphereLUT / SkyView (sample two). The +0xD0 dword in SkyView and
  MultipleScattering picks RGB9E5-packed or float output descriptors.
  It does not skip the stores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:04:51 +01:00
fa5f5e450d chore(shader): merge upstream main into min/max payload handling
Keep the targeted regression and the intervening upstream changes together for review.
2026-11-22 21:04:36 +01:00
70b14257c0 docs/d3d12_vulkan.md: refresh the RTX 5080 D3D-56 descriptor-bench table on current main
The RTX 5080 table in section 5.1 was measured before bc8e604's bounded slot
relocation, so its 100k row grew to 2,097,152 slots (4.8% load) and was not
comparable to the AMD RDNA3 table. Re-measured on current-main code (driver
621.24): 100k now settles at 524,288 slots / 19.07% load / max_probes=8, the
same geometry as the RX 7900 XTX and RX 9070 XT tables.

- replace the NVIDIA table with the refreshed numbers (device_local/ReBAR are
  the median of 4 processes, host_visible one); link the raw CSV (#313).
- rewrite the three consequences (old point 3 recommended exactly the bounded
  relocation bc8e604 since landed) and fix the AMD note and its point 4, which
  still described the NVIDIA table as a different, non-comparable geometry.
- fix the section-5 perf summary's now-false "doubles to 80 MiB / 4.8%" claim.

Synthetic benchmark, no game data. AI-assisted; measured on an NVIDIA RTX 5080
(driver 621.24, Vulkan 1.4.357), Windows 11 Pro 26H2.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-22 22:04:35 +02:00
de5d616a8b Merge branch 'perf/wave64-emulate-dead-scc-exec-fold' into perf/wave64-emulate-structured 2026-11-22 16:04:25 -04:00
6543ff9b77 docs/design: drop stale not-verified markers where hardware evidence exists 2026-11-22 23:04:24 +03:00
93c8ca9a7b TEST-433: the skip message states the measured cause (16 live lanes behind a reported 32)
Measured by kapitche: Intel UHD 770 reports gl_SubgroupSize 32 in the fragment stage but runs 16 live invocations, so tiers A and B (32 or 64 live lanes) cannot hold. The skip keeps its condition (minimum subgroup below 32); deriving it from a measured live width is a follow-up.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:04:22 -05:00
aa780e3c7f Merge branch 'main' into perf/wave64-emulate-dead-scc-exec-fold 2026-11-22 16:04:21 -04:00
a13d955159 vk_compute_test: probe only with compute ballots, main's LocalSize, width apart from lane order
Review of #2886: the probe needs subgroup operations in compute (supportedStages) with basic and ballot
(supportedOperations), or the size stays "not available". LocalSize is the one of the GLCompute entry point "main"
the pipeline is made from, not the last in the module. The width is checked from each subgroup's own lane numbers
and ballot (a wrong width fails the test); 32-lane subgroups that aren't in invocation order, which Vulkan doesn't
promise and the translator assumes, print "not available" and the runners skip.
2026-11-23 00:04:20 +04:00
777d218770 vk_compute_test: run 32-lane tests where the size is fixed but not requirable (MoltenVK)
MoltenVK reports subgroups 4..32 and requiredSubgroupSizeStages 0, so VKC_SUBGROUP_SIZE=32 printed "not available"
and the 32-lane compute tests skipped. The translator emits SPIR-V 1.5, where varying subgroup sizes are not allowed,
so Vulkan fixes SubgroupSize at the device's subgroupSize (32 there). vk_compute_test now runs a probe shader
(cs_wave_probe.comp, embedded) with the test's local size and flags first, checks every invocation's lane, subgroup
number and ballot width, and runs the test if they match. If they don't, the test fails (exit 1) instead of being
skipped. Full subgroups are requested where local size X is a multiple of maxSubgroupSize. Devices whose default
isn't the requested size keep printing "not available".
2026-11-23 00:04:20 +04:00
330f0d3013 PROC-147: document the studio-shot lighting shader's inputs
docs/shader_inputs.md lists what PS_STUDIOSHOT_PBR_MATERIAL_STANDARD_LIGHTING
needs from its inputs, as a first check for a dark frame or a device-lost:
the 512-byte light records, the fixed eight-light loop, the plane count in
the top byte of +0x4C, the profile table's intensity skip and the shadow
strength byte at +0x73. Reported by @Silliana in #1892; offsets confirmed
against the shader, with two corrections to #1892 (the count is at +0x4C,
and the +0x40 low-24-bit test disables one factor, not the light).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:04:16 +01:00
456b0bcd33 PROC-147: document the studio-shot lighting shader's inputs
docs/shader_inputs.md lists what PS_STUDIOSHOT_PBR_MATERIAL_STANDARD_LIGHTING
needs from its inputs, as a first check for a dark frame or a device-lost:
the 512-byte light records, the fixed eight-light loop, the plane count in
the top byte of +0x4C, the profile table's intensity skip and the shadow
strength byte at +0x73. Reported by @Silliana in #1892; offsets confirmed
against the shader, with two corrections to #1892 (the count is at +0x4C,
and the +0x40 low-24-bit test disables one factor, not the light).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:04:11 +01:00
e71ee723d5 docs/design.md: SHADER-10 census re-run on current main; the 195 corpus GS are tier A with the GS ring rule
The census in the row predated the GS ring rule (TEST-251) and #1982; re-run over the same 1.0.2.1 corpus:
tier A 2,117 (was 1,919), GS 195/0/0 (was 0/0/195). The row's open question (whether the corpus GS were a false
tier C) is answered by it.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:04:11 -05:00
38df0fb43f d3d12: measure 96-bit resource tiling 2026-11-22 20:04:08 +00:00
52e159813b TEST-433: skip the tier A/B pixel fixtures where the fragment subgroup is narrower than 32 and cannot be required
Intel UHD 770 reports fragment subgroup 8..32 but runs pixel shaders 16 wide and cannot be held to 32, so reads
across 16 lanes (permlane, swizzle, bpermute) fail there. Tiers A and B mean exact on 32- or 64-lane subgroups.

The SHADER-10 row also loses the stale text the merge of #2260 left in it: the pre-TEST-319 A list (bpermute and
permlane "not GPU-tested here"), "Corpus coverage is not measured here", "the corpus ones are wave32", "geometry
shaders are not tested" and a repeated sentence, which the census and the GS fixtures (TEST-251) now contradict.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:04:07 -05:00
64f178993f rdna2spirv: add binary64 round-to-integral VALU ops (SHADER-379) 2026-11-22 23:03:48 +03:00
8722380517 wave64_halves: SAVEEXEC as the kill run side's first narrowing; docs row matches the code
The run side of a pixel kill's early exit was rejected when its first narrowing was
`s_and_saveexec_b64 sN, <wqm mask>` (OFF_OK had only s_mov/s_and/s_wqm), which also left
confine_step's `old_inside or ok(x)` branch unreachable. Allow s_and/s_andn2 _saveexec/_wrexec
while EXEC is not yet inside: their new EXEC is S0 & EXEC or S0 & ~EXEC, so it is inside when S0
is, and the saved old EXEC is not treated as inside. s_or_saveexec first stays tier C, as does a
restore of the saved EXEC.

The design.md row now says the exit may export (an export is not required) and lists every EXEC
write the must-dataflow keeps inside.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:03:37 -05:00
3c0d5b449a docs/models.md: effect records are walked forward from stored lengths (#3036 c0439966)
The table-location caveat is gone: tests/test_sgd5_effects.py passes
against this package. The u32 after an effect name stays open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:03:37 -03:00
cb4ca6e253 docs/models.md: native effect records resolve all 18 material hashes; the effect census reproduced
With @jeremygold02's tools/sgd5_effects.py (#3036, 0029eba7) on the same
shaders.rpf: 932 effect records with distinct name hashes, 913 technique
tables, 25,037 techniques and 28,798 passes, and the data.rpf materials'
18 hashes (3,340 slots) each matching exactly one record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:03:37 -03:00
f36e3af8e1 docs/models.md: effect-record ordinals count within one of shaders.rpf's two SGD5 databases
The group walk (@jeremygold02) reproduced on the same archive: 11,018 /
10,944 / 195 / 0 / 0 / 2,647 programs and 910 effects in the first
database, 500 / 1,157 / 0 / 0 / 0 / 42 and 22 in the second, adding up to
the whole carve. Group 2 is the GS. His census of both databases' effect
tables is reported as his.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:03:37 -03:00
97c065b420 docs/models.md: what the effect-record ordinals index, the suffix counts over all graphics programs, the format as a hypothesis beyond three records
Answers @ramenbellic's review of 240180e7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:03:37 -03:00
8a926fe6d7 docs/models.md: effect records in shaders.rpf select a technique pass's mesh and pixel programs
Found by @jeremygold02 in #2519 and reproduced on three records of the same
shaders.rpf. The run-time choice of technique and pass, and a general locator
for effect records, stay open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:03:37 -03:00
a15e8392ff Merge remote-tracking branch 'origin/main' into shader-363-pknorm-single-rounding
# Conflicts:
#	docs/design.md
2026-11-22 23:03:30 +03:00
cc4231d34b wave64_halves: tier A for the early exit of a pixel kill
A wave64 pixel shader that kills pixels with `s_andn2_b64 live, live, exec/vcc` and branches with
`s_cbranch_scc0` to a block that only empties EXEC from that mask, exports and ends was tier C
unsafe-vote-branch. It is exact on 32-wide subgroups: a half whose live mask is empty writes nothing in
the exit and discards its pixels, and in the wave its lanes stay off to the end.

The rule accepts it only when:
- the branch tests the mask's own "not empty": the last SCC writer is a 64-bit logic op into that mask
  (or s_cmp_lg_u64 mask, 0) and nothing rewrites the mask before the branch (or vccz/vccnz);
- the exit only sets EXEC from that mask (or 0), exports and ends: no other code, store or successor;
- the run side narrows EXEC into the mask's whole quads before anything but mask arithmetic runs and
  keeps it inside on every path, loops included (a must-dataflow over narrowings and copies, unions and
  s_wqm of registers known to be inside);
- no `exp ... vm` can run before the vote (a latched vm export would keep the pixels alive in the wave).

Also: s_mov_b64 / s_cselect_b64 of a lane mask no longer tag SCC as a vote on their destination (they
do not write SCC); the branch could take a lane-count compare for a vote and come out tier A.

Tests: classification of the kill (wqm + s_and, v_cmpx + s_mov, direct s_and / s_mov / s_wqm exec,
exit through exec 0, an if/endif after it) and near misses (exit with code, a store, an SGPR write,
another mask, a jump back; a run side that does not narrow or widens again; the mask rewritten after
the vote; SCC = mask == 0; a vm export before the vote; a shared exit), and 64 vs 2x32 vertex runs.
GPU fixture ps_w64_a_discard: RX 580 (RADV, required size 64) and RTX 5070 (32, against the 580
reference) equal the derived words.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:03:30 -05:00
5efe4afddd Merge origin/main into queue-wait-before-signal 2026-11-22 21:03:29 +01:00
90f10662ac Merge upstream main into reserved texture tile mappings 2026-11-22 17:03:14 -03:00
c82fbe37d1 Shader: flush legacy f32 multiply operands and results in default MODE
Match RDNA2 mode-0 denormal semantics and legacy zero override; flush product before output scaling and normalize modifier zeros. Add synthetic semantic/GPU fixtures and documentation. AI-assisted (GPT-6).
2026-11-22 15:03:13 -05:00
b9cc5f9a32 Runtime: support conservative rasterization Tier 1 2026-11-22 16:02:50 -04:00
f8007dda67 Queue holds: review fixes (Present ordering, pins, timeline monotonicity, fence lifetime, teardown, docs)
- Present is queued behind held work (QueueHolds::after_held) and submitted in order by the releasing thread.
- Held batches keep the pipeline states and root signatures of their lists; fences a queue waits on or signals are
  kept until the submission has completed on the GPU (a D3D12 queue holds them).
- A held Signal released below an unheld one on the same fence leaves the Vulkan signal out (claimed under the submit lock).
- A queue destroyed with held Signals completes the CPU waits on their fences and reports it.
- A failed held batch is reported (take_held_failure, last_execute_result), its waits stay for the next submission,
  and the Signal behind it still signals.
- d3d12_queue_handover_test: pairs, two-thread signalling stress, held Signal of a released fence, shared fence,
  teardown with a CPU waiter; --two-queues and --shared-queue modes on a caller-owned device.
- Tests for each fix in vk_presenter_sync_test, vk_queue_query_sync_test and d3d12_m4_compute_test; docs section 4.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:02:33 +01:00
c94a631217 docs(testing): say which Mesa versions were run in the RADV row
Only 25.2.8 was run; 25.3, 26.0 and 26.1 come from reading the source.
25.2 is Ubuntu 24.04's default, not 25.3 (Kam471's review).

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:02:28 +01:00
446270b08a GPU tests: fix the two errors GPU-assisted validation reports
Run under VK_LAYER_KHRONOS_validation with GPU-assisted validation (VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1),
which instruments the translated shaders, the llvmpipe GPU suite gives two errors. Both are in the tests,
not the translator, and both passed only because llvmpipe tolerates them:

- vk_bindless_test (ps_tex): the synthetic T#'s word 1, 0x22222222, has FORMAT 34 (10_11_11_UINT). The
  translator picks the uint alias of the image array for a UINT T#, so every draw sampled the test's
  R8G8B8A8_UNORM views through a uint image, which Vulkan leaves undefined
  (VUID-vkCmdDraw-format-07753). The T# now has FORMAT 56 (8_8_8_8_UNORM), checked by a static_assert.
- cs_w64_mask_detect: every lane stored at lane * 64 through a V# that allows any offset, so lanes 4-63
  wrote past the 256 bytes vk_compute_test gives one group, through the buffer's device address
  (VUID-RuntimeSpirv-PhysicalStorageBuffer64-11819). It stores at lane * 4 now; out[0] is still 48.

docs/testing.md: how to run the shader test programs under validation, GPU-AV and sync validation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:01:58 +00:00
f76ee8ea33 docs/models.md: effect records are walked forward from stored lengths (#3036 c0439966)
The table-location caveat is gone: tests/test_sgd5_effects.py passes
against this package. The u32 after an effect name stays open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:00:38 -03:00
fa342a822f tools: match anim.rpf SKEL_* bone lists against packs.rpf skeletons (ASSET-231) 2026-11-22 22:59:55 +03:00
c94fbce94c docs: materialid on the four garments as measured, and textures.md agrees (ASSET-230 review)
Review of #3009:

- character_models.md said materialid is "declared but unbound on the jacket"
  and "unbound on all four". The jacket's and the crop tee's material rows
  reference a BC4_UNORM texture that is in the pools; the bikini top's and the
  undies' rows have no such slot. Whether a shader samples it is not measured.
- textures.md still said "the jacket, crop tee and other garments have no
  albedo". The bikini top and the undies are on other shaders and account for
  nine of the 0xC8E8C282 references (six and three material rows).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 21:58:16 +02:00
4cf7e3e718 rsc8_audio: decode the AWC 0xbd tag as cue records, not a header with a magic
The tool read only the first word of a 0xbd tag and called it a magic
(0xE5C74063); docs/rsc8_audio.md described the tag as a 16-byte header.
Over all of audio.rpf the tag is a headerless list of 16-byte records
{name joaat, value, sample offset, extra}, sorted by offset, and that
value is the first word of only 88,082 of 420,168 tags.

decode_marker_records() decodes the list, every scan counts it in new
marker_* summary keys, and the doc carries the measured counts. The
record layout and the tag-id rule (low byte of the chunk name's joaat)
were read in TrinitronClient/GTA6-Asset-Info structure/03-audio-awc.md
(029e4c3) and re-measured here; no code was copied.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 19:57:12 +00:00
15b4154142 Runtime: support conservative rasterization Tier 1 2026-11-22 15:57:00 -04:00
afd0d4c622 dxgi: IDXGIFactory6 and IDXGIFactory7 on the Vulkan factory (D3D-2)
CreateDXGIFactory2(IID_IDXGIFactory7) and QueryInterface for
IDXGIFactory6/7 failed on the layer's factory, which stopped at
IDXGIFactory5.

- EnumAdapterByGpuPreference returns the one Vulkan adapter at index 0
  for every preference.
- RegisterAdaptersChangedEvent / UnregisterAdaptersChangedEvent keep a
  cookie registry. The adapter list never changes, so the event is
  never signalled.

Every return code follows the host dxgi.dll, measured on Windows 11
with an RTX 3070:
- a preference outside the enum is accepted;
- a null out is DXGI_ERROR_INVALID_CALL;
- past the end is DXGI_ERROR_NOT_FOUND with *out cleared;
- a non-adapter riid is E_NOINTERFACE;
- a null event or cookie, and an event registered twice, are
  DXGI_ERROR_INVALID_CALL;
- cookies start at 1 and are separate from the occlusion cookies;
- an unknown cookie is DXGI_ERROR_NOT_FOUND.

dxgi_swapchain_test checks each answer. With main's factory it fails
at QueryInterface(IDXGIFactory6/7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:55:41 +01:00
6da90ef02e docs: pin the row 313 LDS exchange to measured gfx1100 words 2026-11-22 13:55:35 -06:00
7cfd20230a SHADER-605: reproduce signed-zero image stores with direct SPIR-V 2026-11-22 20:55:15 +01:00
5027156fef rsc8_audio: the 0x5a counter is a sample position; the last entry holds an f32 (ASSET-256)
Over all 1,185 audio.rpf streams with a 0x5a table, the counter of every
entry but the last ascends strictly and stays below the stream's 0x76
sample count (largest 0.9986 of it). The last entry holds an f32 at +16
(2/3 on 1,182 streams), about 1.06e9 read as a u32, which made the
counter look 2^11-2^13 times finer than a sample.

decode_grid20_table reports that float as tail_f32 and leaves the last
entry out of the counter checks; the scan tallies
grid20_counter_past_samples (0 over the package). docs/rsc8_audio.md
records the measurement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:54:05 +01:00