Commit Graph

5744 Commits

Author SHA1 Message Date
b2da1c0add D3D-448-GRAPHICS: a graphics signature past the console window logs its dwords per shader visibility
No VS or PS reads s[0:1] as an address (root_spill_census), so a 29..32-dword start-up signature may fit
each stage once a parameter takes SGPRs only in the stages it is visible to. The fallback now logs the
console-layout dwords per D3D12_SHADER_VISIBILITY and the per-stage sums, counts a retail run can report.
2026-11-24 19:13:15 +01:00
d05a68356e tools/awc_opus: bound streamed metadata packet retention
Keep block locations instead of copies of all Opus packets during discovery. Check the allocation regression and record the exact sample-count evidence for the skip and budget handling.

Co-authored-by: OpenAI Codex <codex@openai.com>
2026-11-24 12:12:48 -06:00
60e15c855f docs: the BVH builder's 52 programs all translate, and pipeline-state streams are implemented (DOC-BVH-BUILDER-52)
docs/d3d12_vulkan.md, docs/embedded_shaders.md and the index row in
docs/README.md said 51 of the 52 XboxBvhBuilder.dll programs translate and
one rule, buffer_store_short, was missing. The rule has been in
tools/rdna2spirv.py since 8f208d09a, and embedded_shaders.md section 7
already recorded 52 of 52 for main 8575d36e.

Measured on main 3aa975421 with a 1.0.2.1 package: 52 containers extracted,
52 translated, 52 pass spirv-val, natively and with --wave64-emulate.

- d3d12_vulkan.md: the eight passages that give the count (sections 4.8 and
  7.2, the M6 row, open question 7, the risks list, Appendix A.2). Section
  7.2 held the same paragraph twice, the second copy starting mid-sentence;
  it is one paragraph again. The Appendix A.2 measurement keeps its numbers
  and says what changed since.
- d3d12_vulkan.md section 3.6: pipeline-state streams (CreatePipelineState)
  were described as not implemented yet, 50 lines above the section that
  documents them; an unknown subobject type is E_INVALIDARG, not a logged
  hard error.
- embedded_shaders.md: sections 4, 5 and 7 (the result table, the blocker
  tables, "What this changes" and the build step's report line). The dated
  measurements of 51 modules stay as they are.

Open question 20's row in d3d12_vulkan.md has the same count and is left
alone: pull request 381 rewrites that line.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 12:11:21 -06:00
c170c08dfa D3D-448-GRAPHICS: LEONIDA_GRAPHICS_ROOT_LAYOUT=pc puts every graphics signature back in the PC layout (diagnostic)
One build can then compare the console layout with the layout used before it on the retail title, as the
#974 review needs (madhyn's frame-loop stack stops after 2 presents with the console layout, runs with
the PC one). Mesh draws are refused in that mode: a mesh shader translated with the root window reads
the console layout only. Compute is unchanged. d3d12_mesh_test checks both sides with one signature.
2026-11-24 19:11:14 +01:00
c6ba76d74a tools/awc_opus: honor hdr24 block_samples budget, interleaved skip, and deficit continuation 2026-11-24 11:48:39 -06:00
f03418595c wave64_halves: a vote on a scalar compare under whole-quad EXEC is no lane vote (SHADER-W64-WQM-UVOTE)
A pixel shader that needs derivatives starts with s_wqm_b64 exec, exec, and LLVM branches on wave-uniform conditions
inside that region as it does anywhere: v_cmp_* sN of scalars, s_and_b64 vcc, exec, s[N:N+1], s_cbranch_vccnz.
SHADER-10 took that for no lane vote only while EXEC was the launch mask, so here it was unsafe-vote-branch.

A compare of immediates and scalars is the same in every lane, so its mask is every lane of EXEC or none; the whole
quads of the launch mask have a lane in every 32-lane half that runs (a quad never straddles the halves). The analysis
carries "EXEC is the whole quads of the launch mask" as a dataflow fact, set by s_wqm_b64 exec, exec under the launch
mask and dropped by every other EXEC write. VGPR sources stay refused there, and so does a path on which a scalar was
read out of a uniform VGPR from a lane the launch mask may not have written.

Corpus (1.0.2.1, all 26,503, on top of SHADER-W64-SDST-PAIR): 452 pixel shaders go from tier C to A, none moves the
other way: C 7,741 to 7,289.

Tests: tests/semantic/test_wave64_halves_wqm_uvote.py; GPU fixture ps_w64_a_wqm_uniform_vote (RTX 4070 Ti, 620.70.06).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:47:35 -06:00
9f1a072f70 tests: a GPU fixture and whole-corpus counts for one-register wave64 mask destinations (TEST-W64-SDST-PAIR-GPU)
SHADER-W64-SDST-PAIR makes the SGPR a wave64 VALU instruction names for a lane mask the pair it is on hardware. Its
own test compares the two printed forms on the interpreter; this adds what it does not have.

cs_w64x_cmp_sdst is written like the game's listings (no mattr line, so llvm-mc prints one register): six compares
and a carry-out whose pairs are read back across both halves by s_and_b64, s_or_b64, s_xor_b64, s_andn2_b64,
s_and_saveexec_b64, s_mov_b64 exec, s_bcnt1 / s_ff1 and SCC. RTX 4070 Ti (620.70.06, subgroup 32) under
LEONIDA_W64_EMULATE=1: the eight words its header derives; main before the rule gave none of them.

docs/design.md gets the counts over all 26,503 shaders: every one of the 292,733 one-register compares in wave64
code names an even register, 13,314 wave64 shaders read such a pair back, the rule's full translation passes
spirv-val 26,503 of 26,503, and 504 wave64 VS/PS leave SHADER-10 tier C (8,245 to 7,741).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:47:35 -06:00
273b3bdf9d [integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD)
One squashed commit of a fork that was developed on a Linux/Proton machine and
tested on two native Windows machines. On all of them the retail 1.0.2.1
package now launches, shows its launch movie, first-run pages and landing
prompt, runs the story load to its end with the loading slideshow drawing its
artwork, and enters the world phase. A first world frame is not verified yet.
docs/linux_proton.md has the setup, a healthy boot's timeline, the machines
and where it stops.

Runtime: frames in the title's own window; DirectStorage pinned reads,
page-list scatter/gather, BCPack and unshuffle with a locally generated
predictor file; pooled, device-local and deferred image backing for streamed
and placed textures; enhanced barriers into LAYOUT_UNDEFINED; a bindless table
that degrades instead of refusing a submission; a descriptor hash finalizer
(off until a library carries it); directly indexed heap offsets for compute
dispatches and VS/PS/GS draws; title buffer windows outside a fragmented
arena; opt-in device-local copies of streamed buffer views; write-fault
retries under the tracker lock, shared trackers and write-watched title memory
for native Windows; device-loss, compute-input and memory probes.

Translator: loop bounds at structured exits, the eight FidelityFX programs
that use a packed-dot form the disassembler skips, buffer bounds modes per
view kind, a compaction option, the hash finalizer option.

Tools and scripts: Linux boot scripts (Wine/Proton, no network), a Windows
boot script, the paired compute translation script.

No game data. AI-assisted (Claude Code and Codex agents), reviewed and booted
by people on the machines named in docs/linux_proton.md.

Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:42:12 -06:00
77df8717a7 bink_index: validate frame offsets within each stored stream
AI-assisted (Codex).
2026-11-24 17:41:54 +00:00
81c17f7670 Merge pull request #348 from JiyouProt/codex/gpu-3080ti-61692
Merging.

**Why merged:** GPU record GPU-3080TI-61692: RTX 3080 Ti, driver 616.92, synthetic subset 81/97 native and 97/97 emulated, plus its row in docs/gpu_test_results.md. The file says plainly that it's a subset.

**Why it's good:** Docs tests: 47 passed. The full-suite numbers from the author's later comment (257/257 translated; 197/248 and 229/248, with the 2 known tfe failures) could go into the file in a follow-up.

Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 82a2aabcc. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 566 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main 32950551e: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or build/CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 12:39:02 -05:00
b8e2fa88b3 Merge pull request #379 from lines9686-rgb/docs-boot-runbook
Merging.

**Why merged:** OLD-5794: fixes the first-boot runbook in boot.md, and boot_trace now marks relocated modules in its text report. Oliwettoo checked the doc claims against the code ("Ship").

**Why it's good:** test_boot_trace plus the docs tests: 79 passed.

Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 82a2aabcc. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 566 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main 32950551e: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or build/CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 12:38:28 -05:00
5f063e5812 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)
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>
2026-11-24 11:32:48 -06:00
b2dda52105 docs/boot: the CreateDevice params are 0x50 bytes, not 24 words (D3D12-CREATEDEVICE-PARAMS) 2026-11-24 14:23:55 -03:00
37c5af12a4 d3d12: an enhanced texture barrier into LAYOUT_UNDEFINED closes and keeps the layout (D3D-BARRIER-INTO-UNDEFINED)
CommandList::barrier(TextureBarrier) refused LayoutAfter = UNDEFINED from a
defined layout, so the list's Close failed. D3D12 allows it: the contents are
no longer needed, as before the memory is aliased. WARP closes such a list
(measured on Windows 11 26340 in #984), and #984 reports that the retail title
ends a depth buffer's use this way and takes the failed Close as fatal.

The rule goes. Vulkan has no transition into UNDEFINED
(VUID-VkImageMemoryBarrier2-newLayout-01198), so replay gives each piece a
barrier with oldLayout = newLayout, the layout the tracker has for it, which
orders the accesses and changes nothing in the image; the tracker keeps the
layouts. A piece that was never used gets no barrier and is not zero-filled
for it. The next barrier starts from UNDEFINED and discards, as before.

UNDEFINED -> UNDEFINED is not touched here: that is #600.

The barrier half of item 2 of the split proposed in #984, carried onto main
from Moriz82's integration branch (command_list.h, the emit change and the
command_list_test, replay_texture_barrier_test and d3d12_close_parity_test
cases), restricted to a defined LayoutBefore, with more cases and two GPU
tests added.

Tests:
- command_list_test, replay_texture_barrier_test (CPU): the recorded barrier;
  kept layouts over mips in two layouts, with the discard flag and without a
  tracker; an unused image released without a barrier or a zero-fill; the
  barrier from UNDEFINED that follows.
- d3d12_close_parity_test: three enhanced-barrier rows (116 cases, 85 match).
- vk_command_replay_test part K (GPU): a colour target, a depth buffer whose
  planes are in two layouts and an unused image released; the target used
  again and read back.
- d3d12_com_test (GPU, D3D12 list and queue): a depth buffer cleared,
  released, taken from UNDEFINED again, cleared and read back.

Co-authored-by: Moriz82 <72836413+Moriz82@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:20:21 -06:00
26d010b41d rdna2spirv: the binary64 roundings keep a NaN's bits and round a subnormal 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>
2026-11-24 11:15:37 -06:00
161314c266 D3D-448-GRAPHICS: docs - what mesh shaders read below s16, counted on the corpus (#14 comment 7138532347): 3 of 9,282, one 32-bit constant each 2026-11-24 18:13:32 +01:00
6994562bda docs(d3d12_command_objects): 0x48/0x50 are heap handle getters on heap objects 2026-11-24 14:12:24 -03:00
675c3fb1b9 runtime: replay the console list's inline records as their vtable calls (BL-3)
A console DLL writes a command into the list object while it has room instead
of calling the vtable (docs/d3d12_command_objects.md §3.5a). The list proxy
avoids this today by pinning the cursor at its limit; an inline write the
title makes without checking first would be lost.

console_list_records.h decodes the measured records (the two dispatch headers,
root constants, descriptor table, root CBV/SRV/UAV, pipeline record) into the
fallback calls (slots 14, 80, 37, 39, 35, 41/43/45, 25), using a root-argument
header table this runtime defines. An unknown or truncated record stops
decoding with its offset instead of being skipped.

console_list_records_test models the DLL independently from the doc and runs
1,200 seeded sequences at six cursor limits: the inline path (replayed before
each vtable call and at Close) and the all-vtable path give the same calls.
Eight planted decoder bugs each fail it.

Not yet wired into runtime/shims/d3d12_xs_device.cpp (Windows-only, not
buildable here). No game files, no GPU.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:12:09 +01:00
1d2e0848fc Recognize an additional script in text-table language guessing 2026-11-24 18:11:30 +01:00
e00d9d05bc vk_pipeline_check: match runtime device features and restore pipeline_cache_seed test (RT-PIPELINE-CACHE-SEED)
Restores the vk_pipeline_check / runtime Vulkan device cache-key parity fix from
ancestor commit c8a102d0cf (Senne Cools), which had been dropped in bulk merge
6dece9231, and extends it for NVIDIA Blackwell (RTX 5060, driver 621.24) + #577:

- Disable robustBufferAccess, scalarBlockLayout and robustImageAccess on
  vk_pipeline_check's VkDevice to match create_vulkan_device_standalone.
- Always enable VK_EXT_mesh_shader and VK_KHR_maintenance8 when supported
  (rather than only when selected shaders request them) and keep
  meshShaderQueries as supported (matching #577 in d3d12_vulkan_device.cpp),
  because NVIDIA hashes both into pipeline cache keys even for compute shaders.
- Restore and register the pipeline_cache_seed CTest with a self-contained
  pipeline_cache_seed_test that embeds a minimal synthetic compute SPIR-V module
  (no glslangValidator required) and runs vk_pipeline_check under its own exe
  filename.
- Update docs/pipeline_check.md ("The cache and the runtime's device").

AI-assisted: yes
2026-11-24 18:08:29 +01:00
355c8c9c2d tests: GPU readback for the binary64 roundings, v_trunc_f64, v_ceil_f64, 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>
2026-11-24 11:04:58 -06:00
9ab8a45cfa tests: remove unavailable mullit readback path 2026-11-24 18:03:55 +01:00
bc7143b5f1 rdna2spirv: a wave64 VALU mask operand printed as one SGPR is the pair (SHADER-W64-SDST-PAIR)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:00:18 +01:00
cad4ceecfa docs(d3d12_vulkan): the title already supports the linear tile path
XG-SWIZZLE-LINEAR-PATH: record that XGSuggestSwizzleMode is only called with a NULL second argument and &desc->tileMode when byte 8 is 0xFF, that 0 is the linear mode, and where the consumers branch on it.
2026-11-24 13:59:50 -03:00
8f8b34896b Merge main into claude/bl1-tls-index0: keep row 4's note and #741's new row 4a
#741 added row 4a (the Wine-only gameinput.dll ordinal 1 stop) directly under row 4 of
docs/retail_boot_chain.md, which this branch edits. Both rows are kept unchanged.
tests/test_docs_*.py: 47 passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
2026-11-24 11:53:29 -05:00
74e55acfbc D3D-448-GRAPHICS: a graphics signature past the console window keeps the PC layout instead of being refused
Measured by madhyn on the retail title with this pull request (#974
review): one of its start-up root signatures is past the console's
inline graphics window (24 dwords from s8) and the compute one (28 from
s4), so CreateRootSignature refused it outright and the title stopped
with an unhandled exception before the frame loop it reached without
this change.

On the console such a signature goes to the argument block behind
s[0:1], modelled for compute only (ROOT-SIG-SPILL-MODEL, #1009). Until
it is for graphics, the graphics bind point keeps pack()'s layout for
it (from s0, two dwords per table), what the layer did before the
console layout, so no signature is worse off than on main. The new
RootArgumentLayout::graphics_console tells address() which layout the
table is in; a mesh shader still refuses such a signature.

d3d12_mesh_test: a 30-constant signature is created and DispatchMesh
with it invalidates the list.
2026-11-24 17:52:02 +01:00
073b8bb3a8 rdna2spirv: SDWA selects of v_{add,sub,subrev}_co_ci_u32 go to the sources, not the carry-out (SHADER-SDWA-CARRY-SEL) 2026-11-24 10:43:41 -06:00
e98b345cb2 dashboard: show actionable CI states for the newest workflow runs
Adapted from LeonidaReforge/Leonida#127 (a7aba01d8204fcf679341049f7314223a89b8fca). AI-assisted (Codex).
2026-11-24 19:43:00 +03:00
50407827cd tests: GPU readback for the binary64 vector compares, v_cmp_*_f64 and 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>
2026-11-24 10:41:43 -06:00
82a2aabcc3 Merge pull request #823 from Puttergilll/patch-1
docs/related_projects: note that americas-recomp is not publicly reachable
2026-11-24 11:39:30 -05:00
6ff4d2805a Merge pull request #790 from aslan2142/asset374-corpus-counts
OLD-7783: restore old upstream PR 7783 - docs/design.md: whole-corpus disassembly and translation counts (ASSET-374)
2026-11-24 11:39:04 -05:00
714aaa3dbb Merge pull request #781 from aslan2142/docs-sweep-multi_gpu_validation
OLD-7699: restore old upstream PR 7699 - docs/multi_gpu_validation: the two recurring RDNA1 failures are Mesa bugs, not old upstream issue 1203; the stale-binary note is under "Run them"
2026-11-24 11:38:57 -05:00
5482fdca1f Merge pull request #774 from aslan2142/docs-sweep-world_census
OLD-7698: restore old upstream PR 7698 - docs/world_census: rejected count, what a rejected candidate is, census_exact, --jobs default (ASSET-379)
2026-11-24 11:38:52 -05:00
ad7d152f96 Merge pull request #757 from aslan2142/docs-sweep-progress_dashboard
OLD-7697: restore old upstream PR 7697 - docs/progress_dashboard: 4 statements the tool does not match (ASSET-379)
2026-11-24 11:38:48 -05:00
5c199606a0 Merge pull request #745 from aslan2142/build1368-ttdb-name-streams
OLD-7410: restore old upstream PR 7410 - docs/textures.md: the TTPF pools hold no name streams (BUILD-1368)
2026-11-24 11:38:43 -05:00
4fddbd0a1d Merge pull request #741 from aslan2142/proc408-gameinput-stop
OLD-7383: restore old upstream PR 7383 - retail_boot_chain: the Wine-only gameinput.dll ordinal 1 stop after the TLS stop (PROC-408)
2026-11-24 11:38:39 -05:00
d239a9c802 vk_subgroup_info: take the barycentric fallback on a Raphael iGPU under 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>
2026-11-24 17:26:40 +01:00
2f5b49c4e0 rdna2spirv: re-anchor from llvm-mc's own offsets of the rejected words
After undecodable words, translate() put each printed instruction back at its
blob offset by searching forward for its printed bytes. A data word llvm-mc
printed as a copy of a later instruction (printed bytes are not the bytes
read) took that later instruction's place, and every instruction after it
lost its place: "undecodable words (cannot re-anchor)".

shader_ir.parse_file now reads the byte offset of each rejected word from the
llvm-mc messages (shader_disasm.py feeds one line of "0xNN " bytes, five
characters a byte) as info["invalid_at"]. When there is one offset per
rejected word, the translator skips exactly those words and searches nothing;
a listed word whose bytes are the next instruction is not skipped, so a
listing with wrong or hand-written messages reads as before.

On the 1.0.2.1 pipeline library, with #327's vcc-tuple decoding, 36 compute
programs that stopped at "cannot re-anchor" now translate and pass
spirv-val; none that translated before is lost.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:24:48 -06:00
98a977b4b7 Merge pull request #335 from milk4sale/gpu-test/cube-store
Tested 0d27fdcf9 merged locally onto main 1504c1af6: cs_imgstore_cube passes everywhere, and nothing else changes state.

Devices: RADV, Mesa 26.3.1, Linux:
- AMD Radeon RX 7900 XTX (RDNA3, gfx1100);
- Ryzen 9 7950X3D iGPU (RDNA2, gfx1036);
- llvmpipe.

New fixture, 10 runs each with run_gpu_tests.py --filter cs_imgstore_cube --require-pass:
- 10/10 natively and 10/10 with LEONIDA_W64_EMULATE=1 on all three devices, 0 bad for all three cube images;
- the validation layer, with sync validation on, reports nothing on either AMD GPU.

Regressions, main vs main + #335:
- Full run_gpu_tests.py on both GPUs, native and emulated: 232/250 → 233/251. The only change is the new PASS.
- Every existing vk_store_test fixture keeps its state.
- tests/test_shader_checks.py and tests/semantic/test_image_cube_store_glc.py pass on both trees.

CI: this head's checks are still queued on GitHub, so I ran the Linux jobs locally. They give the same result on both trees. The only failures are already on main:
- cs_imgload_tfe and cs_imgload_d16_tfe (#31, fixed by #892);
- tests/test_tool_stdout_encoding.py.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 17:21:28 +01:00
c10e774145 Add PC checker note to the Arabic quickstart 2026-11-24 17:20:06 +01:00
cf4c00cbad Merge pull request #345 from milk4sale/gpu-test/image-atomics
Tested 367d91ef (merged locally onto main 0af7753c) on RDNA3 and on an RDNA2 iGPU: pass.

Setup:
- AMD Radeon RX 7900 XTX (RDNA3, gfx1100)
- Ryzen 9 7950X3D iGPU (RDNA2, gfx1036)
- Mesa llvmpipe
- RADV Mesa 26.3.1, Linux
- Runtime built from main; this PR doesn't change any runtime/ C++. No game files.

Results:
- run_gpu_tests.py --filter cs_imgatomic_ext --require-pass passed 3/3 native and 3/3 with LEONIDA_W64_EMULATE=1 on each GPU, and 1/1 on llvmpipe. Every run printed "all 64 words of the uint image, the sint image and the volume exact".
- --filter imgatomic passed 4/4 on both GPUs (cs_imgatomic, cs_imgatomic3d, cs_imgatomic_ext, ps_imgatomic).

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 17:16:23 +01:00
513129b934 docs/testing.md: Known problems row for ps_imgatomic on MoltenVK 1.4.2 (DOC-IMGATOMIC-MVK)
The test fails in about two of three runs on Apple GPUs with MoltenVK
1.4.2 (#543) and had no row. The row records what the Apple M5 adds to
the M5 Pro report:

- MoltenVK lowers the four atomics to Metal's texture atomics, so the
  module is not turned into a read-modify-write on the way;
- a wrong umax or umin texel always holds the max or min of only some
  of its own 64 pixels, as a lost update between two groups of fragment
  threads leaves it;
- it is neither the first-lane broadcast of the descriptor index (54 of
  60 runs fail with the index used directly) nor the readback (42 of 60
  fail with the copies in a submission of their own).

Documentation only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 00:02:35 +08:00
2b21eb603e docs: drop stale duplicate GameInput API rows 2026-11-24 12:59:49 -03:00
9ae6f1253f rdna2spirv: keep DATA0 for equal paired LDS write offsets 2026-11-24 18:58:14 +03:00
a83f0c3e14 Document how to preserve CTest skips in the dashboard 2026-11-24 16:57:39 +01:00
5fdd6abbc0 D3D-448-GRAPHICS: graphics root arguments in the console layout, mesh shaders through a window
The graphics bind point laid root arguments out with pack() (from s0, two
dwords per table), while the console starts them at s8 for VS/PS/GS with
one dword per table (the corpus census, and the retail frame loop reading
its tables at s8..s10). Compute already took the console layout (D3D-448);
graphics waited because a mesh shader (s16) and a pixel shader (s8) share
one push-constant block.

- translator: user_data_dword() - a mesh shader loads s16..s31 from push
  dwords 8..23, s8..s15 as 0, s0..s7 unchanged, so root dword k is push
  dword 8 + k for every graphics stage; index.json records the window as
  "root_window" on mesh shaders. VS/PS/GS/CS are unchanged.
- runtime: CreateRootSignature lays graphics out with
  pack_stage(Stage::Vertex) and checks Stage::Mesh (mesh_ok); a table is
  one dword at both bind points; DispatchMesh with a signature past the
  16-dword mesh window invalidates the list; a mesh PSO whose mesh shader
  has no root_window (translated before) is refused with a log line.
- fixtures: the GLSL stand-ins read the root arguments at push dword 8 + k;
  the M1.5/M2/M3 asm read their tables as one dword from s8.
- tests: tests/semantic/test_ms_root_window.py (MeshEXT and --mesh-compute
  on the CPU interpreter), graphics-window cases in root_signature_test,
  the two refusals in d3d12_mesh_test.
- docs: d3d12_vulkan.md 3.5, design.md user-data row.
2026-11-24 16:50:49 +01:00
5be5708dfc Merge pull request #647 from TanmaySatyam/feat/sload-vcc-base
rdna2spirv: accept vcc (s[106:107]) as 64-bit base pointer in s_load_dword* (SHADER-SLOAD-VCC-BASE)
2026-11-24 10:50:24 -05:00
8ebd73ef47 Merge pull request #642 from aadheel/fix/vop3-clamp-nan-zero
rdna2spirv: VOP3 clamp of a NaN gives +0 under DX10_CLAMP (SHADER-CLAMP-NAN)
2026-11-24 10:50:19 -05:00
d4b3a001d2 Merge pull request #572 from DeSunShine/fma64-rt
rdna2spirv, docs: NVIDIA splits a binary64 Fma only when folding an all-constant one; add cs_div_fmas_f64_rt (FMA64-RT)
2026-11-24 10:50:14 -05:00
d046559435 rdna2spirv, shader_disasm: VOPC compares in DPP form (SHADER-VOPC-DPP)
Three pipeline-library compute programs of 1.0.2.1 hold v_cmp_gt_f32 with a
DPP16 or DPP8 src0. llvm-mc has no gfx10 decoding for the pair, so the
listing dropped the words and the programs were refused.

shader_disasm.py prints the pair through a VOP2 stand-in that takes the same
DPP word, rdna2_decode.py decodes it directly, and Gen.dpp_insn translates
the compare for the forms where every lane writes its bit. Other forms and
v_cmpx are refused: what an unwritten lane does to VCC is not measured.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 23:41:08 +08:00