Commit Graph

54 Commits

Author SHA1 Message Date
de3ee203b2 Merge remote-tracking branch 'origin/main' into vk-pipeline-large-admission
Conflict in runtime/test/large_module_gate.h: kept main's forwarding header to runtime/src/large_module_gate.h (unchanged) and put LargeModuleQueue after the include; it admits with the gate's admits() and a blocking Ticket under its own mutex, so try_enter and the try_to_lock Ticket are no longer needed.
2026-11-26 00:58:30 +01:00
1bf5eeafd7 Merge pull request #1891 from BubsMcgee/tf-device-foundation
d3d12_vulkan_device: detect and enable VK_EXT_transform_feedback + vk_pipeline_check parity (D3D-TRANSFORM-FEEDBACK-DEVICE)
2026-11-25 23:32:25 +01:00
6c6a8cd47d vk_pipeline_check: a large module that must wait frees its worker (VK-PIPELINE-CHECK-LARGE-ADMISSION)
A worker took the next index and only then waited in the large-module gate,
so with the memory budget full the modules behind a large one sat untaken
while spare workers blocked, and the pool ran below --jobs.

LargeModuleQueue (large_module_gate.h) now hands out the indices. A large
module the gate can't admit yet is put back and the worker takes the next
one. The oldest module put back goes first as soon as the gate admits it and
no later large module passes it; once every index is out, a worker waits for
it. Nothing is put back while the gate admits each large module as it comes,
so with one worker or room under the budget the order is unchanged, and
--large-parallel 1 and --large-module-bytes 0 never ask the queue to admit.

large_module_gate_test: the waiting module frees its worker (fails with the
old claim-then-admit order), oldest-first and no double entry, the unchanged
order, and every module once under 8 threads.

AI-assisted (Claude Code).
2026-11-25 20:53:43 +01:00
34ab89f896 tests: enable VK_EXT_transform_feedback in vk_pipeline_check (D3D-302)
The runtime's device enables VK_EXT_transform_feedback whenever the extension is present, and AMD's driver makes it part of a pipeline's cache key, so the cache vk_pipeline_check seeds offline no longer hit in gta6rt: pipeline_cache_seed failed 3/3 on an RX 7900 XT (adrianmjim). Link the same VkPhysicalDeviceTransformFeedbackFeaturesEXT the runtime enables, next to the mesh-shader one, and list it with the other always-enabled extensions in the header and docs/pipeline_check.md.

Tested: pipeline_cache_seed passes on an NVIDIA RTX 3080 Ti (NVIDIA does not key on the extension, so it cannot reproduce the AMD failure). AI-assisted.
2026-11-25 09:35:29 -05:00
4aa21d1a83 runtime: large compiles wait for memory in arrival order, demand before speculative (RT-BIG-COMPUTE-BUDGET)
LargeModuleGate moves to runtime/src (a forwarding header keeps vk_pipeline_check and its test as they are) and gets a second constructor, whose budget is read whenever a place is given or returned. Its modules get in in the order they came, a speculative one only while no demand waits and within a quarter of the budget. large_compile_budget_bytes() is three quarters of the smaller of the free RAM and the room under the commit limit. CPU test: the bound, one always, order, priority, every wake-up, the budget of the moment and the setting.
2026-11-25 15:11:10 +01:00
154e4ec034 Merge the #984 result (main + RT-PROTON-STORY-LOAD) into #939
The base is 8a242efeb, the merge of main and #984. 68 files conflicted; they were resolved in seven groups by
one rule: the same change in two forms keeps the base's form, everything only #939 has is kept, and where the
two solve one problem in two ways the base's is the frame and #939's plugs into it.

A, the Xbox proxy (d3d12_xs_device.cpp/.h, d3d12_xs.cpp, d3d12_xs_pso_stream.cpp/.h, d3d12_xs_alloc_size.h,
d3d12_xs_desc_clean.h, device_proxy_test.cpp, queue_proxy_test.cpp): the base's files with #939's additions
ported in. Device slot 57 asks #939's NativeGraphicsFactory first and falls back to the base's
proxy_create_graphics_pipeline_from_native_code on E_NOTIMPL. Kept from #939: the providers (texture lease,
raw texture view, resource by address, constant view, descriptor mapping, depth-stencil UAV, texture pages),
the title-backed descriptor mirror, slot 13's feature answers, GPU labels on list slots 71/72. Dropped: #939's
duplicates of the boot ladder routes, its fallback window, its slot 133 stand-in.

A2 (xs_proxy_mock_test.cpp): the base's test with #939's slot 70 raw-buffer case; presentation cases follow
#939's rule that a device which ever had a handler has no queue fallback.

B1, the Vulkan device (d3d12_vulkan_device.cpp, d3d12_com.cpp/.h, shader_library.h, queue_families.h,
pipeline_cache_file.h, startup_trace.h): one lazy-pipeline mechanism, the base's; #939's pending_base_compile
and first_use_backend_pipelines dropped, prepare_on_bind and cold_graphics_compile kept. create_texture keeps
the base's signature; #939's deferred backing is folded into the base's placed-memory binder. #939's quad
lists as triangle indices.

B2, the D3D12 tests (d3d12_existing_heap, a8_dimensions, pipeline_cache_seed, title_va, rect_list,
shader_library, loader_tls_index0, draw, compute, xmem_placed, shader_library_corpus): the base's tests where
both carry the same case, #939's cases added (rebound tables, linear texture map, large vertex batch,
executable shaders, default A8 views).

C, the backend (vulkan_replay.h, vulkan_backend.h, vulkan_bindless.h, vulkan_scratch.h, vulkan_present.h,
rect_list_geometry.h, vk_test_device.h, vk_pipeline_check.cpp, vk_store_test.cpp, bindless_sizing_test.cpp,
replay_texture_barrier_test.cpp): the base's prepare_draw and lazy compute, its #1055 release rule and its
rectangle generator; #939's rectangle variants, GPU quad index expansion, 1D/3D and depth-stencil UAVs, the
label fence on the base's submit.

D, memory, services, presentation (xmem.cpp/.h, xg_xs.cpp, xg_xs_test.cpp, title_va_alias.h and its test,
main.cpp, frame_pacer.h, xbox_present.cpp/.h; xgameruntime_offline.cpp for one comment): the base's xmem with
#939's label hooks, file-backed sections and pin_mapped_data; both texture computers in xg_xs.cpp, the base's
answering first; --first-run-ui kept without host speech in its profile.

E, build, tools, docs (runtime/CMakeLists.txt, make_game.py, tools/rdna2spirv.py, tools/shader_disasm.py,
scripts, tests, docs; docs/README.md and tests/test_exe_shaders_stage.py beyond the conflicts): the base's
v_dot4 decode, #281's disassembler form and tests/semantic/test_fspx_dot4_op_sel_disasm.py dropped; the
base's executable-shader step with #939's cache fix; 366 registered tests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 20:26:00 -05:00
39879ce0fd Merge main into RT-PROTON-STORY-LOAD (#984)
Merges main at 1154976d4 into the integration branch at 273b3bdf9 (merge base ece4ba5b3). 42 files conflicted;
this commit is the resolution only. Build and test repairs follow in their own commits.

Rule of resolution: where both sides added different things, both stay; where both made the same change in two
forms, main's reviewed form stays and whatever #984's form did in addition is carried into it; where the two
changed the same code for different purposes, both purposes are kept.

Xbox proxy code (runtime/shims/d3d12_xs_device.cpp, d3d12_xs_device.h, d3d12_xs.cpp, d3d12_xs_alloc_size.h,
d3d12_xs_desc_clean.h, registry.cpp):
- d3d12_xs_device.cpp is #984's file with main's differing pieces ported in: env_slot and the configurable device
  routes, XboxQueueSlotRoutes, PresentationHandler / set_presentation_handler, the console caller rule for device
  slots 61 and 74 (#383, #385), route_xbox_device_slot, slot 81 as GetFrameStatisticsX, create_host_device, the
  console-form rule for slots 25 and 56, the console list IID of #359, and the forms of queue slot 18 (#403) and
  list slot 139 (#396).
- Kept from #984: the list proxy with handle translation, queue slots 16/17 as Signal/Wait, the fence's
  completed-value mirror, the shared FrameTokenSource, PresentX through queue_present_x when no handler is
  attached (slot 30, or 32 on a queue detected as the newer layout), slots 27/53/55/57/70/71/133, the wider
  pc_resource_desc, S_OK for queue slots past the PC table.
- Dropped: #984's GetFrameEventsX and LEONIDA_XS_FRAME_EVENTS_SLOT, its second-word rule for slot 61, its
  undetected-layout rule for queue slot 18, its list IID mapping to GraphicsCommandList6; main's copy of the base
  list proxy, its null-view slot 70 and its refusing slot 133.

Proxy tests (runtime/test/xs_proxy_mock_test.cpp, device_proxy_test.cpp, queue_proxy_test.cpp):
- Checks of both sides, each run once; main's forms of the render-target size and layout checks with #984's extra
  cases added; main's --env-slots-74 and #984's --env-slots-70.
- Adapted to the merged code: the queue tail answers S_OK, slot 73 answers an unknown IID with the list proxy,
  the queue slot 18 case installs a console caller. Dropped: #984's slot 81 GetFrameEventsX cases.

D3D12/Vulkan layer (runtime/shims/d3d12_com.cpp, d3d12_vulkan_device.cpp, runtime/src/command_list.h,
frame_pacer.h, shader_library.h, vulkan_backend.h, vulkan_replay.h, runtime/test/command_list_test.cpp,
d3d12_close_parity_test.cpp, d3d12_execute_indirect_validation_test.cpp, replay_texture_barrier_test.cpp,
vk_pipeline_check.cpp, vk_test_device.h):
- Resource::create_texture: #984's title images (deferred placed, pending streamed, title pool) and main's
  ordinary textures (#1413 shared blocks, #1364 staging fallback) are exclusive branches chosen by the texture's
  origin, so both pools run on disjoint sets of textures.
- frame_pacer.h is main's pacer (#402) with #984's FrameTokenSource as the token counter.
- main's forms kept for ExecuteIndirect (#1066, #377), the barrier into LAYOUT_UNDEFINED (#1055), the B4G4R4A4
  stand-in, per-face stencil masks, the unaligned tile staging (#528) and the device-lost flag (#980).
- shader_library.h: main's block inflate; #984's `bulk` parameter now defaults to true so main's callers keep it.
- Dropped: #984's B8G8R8A8 stand-in for B4G4R4A4 targets, its refusal of separate stencil masks, its zero-count
  refusal in ExecuteIndirect, its wider UNDEFINED -> UNDEFINED release and the test case for it.

Other shims (runtime/shims/dstorage.cpp, file_system.cpp, gameinput.cpp, xgameruntime_offline.cpp,
runtime/test/xgameruntime_offline_test.cpp, xmem_test.cpp):
- ReadFile and DirectStorage reads: #984's pinned kernel_writes read, then main's touch_pages retry on
  ERROR_NOACCESS. main's rt::fs::read_file is folded into #984's read_file.
- gameinput: main's strict LEONIDA_INPUT_SCRIPT parser with #984's rsup/rsdown entries.
- Speech synthesis: main's one silent voice and handle checks; #984's accept-anything form dropped.

Build, tools, docs (runtime/CMakeLists.txt, runtime/cmake/translator_deps.cmake, scripts/build_runtime.ps1,
make_game.py, tools/rdna2spirv.py, shader_disasm.py, shader_ir.py, shader_library.py,
runtime/test/shaders/cs_imgload_tfe.asm, cs_imgload_d16_tfe.asm, docs/README.md, boot.md, d3d12_vulkan.md,
runtime/README.md):
- Unions of the test, target and source lists; spirv_loop_guard.py added to translator_deps.cmake.
- rdna2spirv.py: main's DPP compare rule (#957), SMEM vcc base (#647) and widen_wave64_masks (#1021); #984's
  restore_skipped_instructions and restore_dot4_inline_sel. #984's duplicate widen_wave64_valu_masks dropped.
- shader_disasm.py and shader_ir.py: main's structure with #984's one-line-per-dword llvm-mc input and wave flags.
- shader_library.py: main's structure with #984's --compute-hashes and per-state compute variants.

One file that did not conflict is changed here: tools/rdna2_decode.py. Git kept both sides' decoders for a VOPC
compare with a DPP operand, and #984's narrower one shadowed main's; it is main's file again.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 19:38:04 -05: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
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
2d9987f3cd Merge the upstream offline services, frame events and queue ABI into the Windows UI integration
Retain the first-run origin-token poll and shared tokens alongside standard origin, vblank and flip events. Route attached presenter callbacks before the fallback window and dispatch local speech through the Windows provider with the upstream offline fallback.

The offline pipeline checker now enables the runtime mesh query feature for cache-producing runs. A controlled GPU comparison with the same compute shader changed from a miss to an application cache hit.
2026-11-24 22:51:02 +08:00
7cee65bc7c Keep explicit heap ranges and cache keys compatible in the integrated runtime
Use the validated console heap range when the title has no allocation hooks. Preserve partially committed buffer reservations, compare CBVs produced through the same ABI, and use the runtime's image robustness setting in the offline pipeline checker.
2026-11-24 22:10:54 +08:00
ced3615124 local: merge #7584 (docs conflict: ours) 2026-11-23 13:34:47 -06:00
789135813a docs/pipeline_check: name tools/spirv_interface.py as the interface reader behind shader_link_check (#6526)
Squash-merged after diff review of PR #6526
2026-11-23 12:52:56 -06:00
c8a102d0cf vk_pipeline_check: match three device features to the runtime so its cache can hit
On an RX 9070 XT (driver 32.0.32029.2010) robustBufferAccess, scalarBlockLayout
and robustImageAccess are each part of the driver's pipeline cache key. The
runtime's device enables none of them, so the checker's no longer does.

New ctest pipeline_cache_seed: the checker compiles one synthetic compute
shader, then the same pipeline is created on the runtime's device from the
saved cache and the creation feedback has to report a hit.

AI-assisted.
2026-11-23 17:55:22 +01:00
5c8da784be docs/pipeline_check: the checker times each pipeline, so a stall is measured, not a lower bound (#6811)
Squash-merged after diff review of PR #6811 - docs/pipeline_check: the checker times each pipeline, so a stall is measured (EGEN-PIPECHECK-SLOW-TIMER)
2026-11-23 09:53:32 -06:00
7c8aa0c0b0 shader_link_check: select entry points for individual stages (#6857)
Squash-merged after diff review of PR #6857 - shader_link_check: select entry points for individual stages
2026-11-23 09:46:11 -06:00
c6920fe155 shader_link_check: read the batch manifest as utf-8-sig, so a Windows BOM is not a JSON error (EGEN-SHADERLINK-MANIFEST-BOM) (#6881)
Squash-merged after diff review of PR #6881 - shader_link_check: read the batch manifest as utf-8-sig, so a Windows BOM is not a JSON error (EGEN-SHADERLINK-MANIFEST-BOM)
2026-11-23 09:42:14 -06:00
546aacc7f0 gta6rt: link with an 8 MB stack; a game thread with the default size had 1 MB for a driver's compiler (RT-400) (#5468)
Squash-merged after review of PR #5468 - gta6rt: link with an 8 MB stack; a game thread with the default size had 1 MB for a driver's compiler (RT-400)
2026-11-23 08:09:40 -06:00
ba2e46ef41 Merge pull request #4523 from YaBulochka
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:15:34 -05:00
1db3cf691f Merge pull request #4465 from ligmaSec
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/pipeline_check.md
2026-11-22 23:14:58 -05:00
da3556f634 Merge pull request #3623 from erickbobd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:01 -05:00
3d4c111c2c Merge pull request #3552 from DanielDeGiorgio
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:07:47 -05:00
be8570ace1 Merge remote-tracking branch 'origin/main' into triage-r43
# Conflicts:
#	docs/runtime_imports.md
#	runtime/CMakeLists.txt
#	runtime/shims/xgameruntime.cpp
#	runtime/test/xmem_test.cpp
#	tools/rdna2spirv.py
2026-11-22 22:12:50 -05:00
ec5773aa2c docs/pipeline_check: disable Mesa's shader cache for measurements 2026-11-23 05:02:50 +03:00
ca6dbf2858 Document compile-only testing on Intel ANV profiles 2026-11-23 02:02:05 +00:00
fe9ca02ed9 Document headless RADV pipeline compilation checks 2026-11-23 01:34:16 +00:00
1c604af1a0 vk_pipeline_check: large modules share a memory budget instead of compiling alone
Modules over --large-module-bytes compiled one at a time with every other thread waiting. On the translated
corpus that is 695 modules (the ray-tracing compute shaders, ~14k RDNA2 instructions each, ~4.9 MB of SPIR-V),
about 12 s and 2 GB each on RADV GFX1201, so the pipelines stage spent hours mostly single-threaded.

large_module_gate.h lets large modules in while 512 bytes per SPIR-V byte fits 3/4 of the memory available at
start (Linux: MemAvailable and the cgroup v2 memory.max room up the tree; Windows: ullAvailPhys), one always
admitted when none is in, small modules never held back. Unknown memory keeps the old exclusive gate, as does
--large-parallel 1. malloc_trim(0) after each large module returns what glibc kept in per-thread arenas.

40 modules (27 large), Mesa shader cache off, RX 9070 XT / Mesa 25.3.6: 297 s -> 83 s on 6 threads (7.1 -> 8.3 GB
peak), 56 s on 12 threads (15.1 GB).

Tested: large_module_gate_test (Linux, and the clang-cl build under Proton), ctest on Linux (40 passed, 2
skipped), vk_pipeline_check over 40 real modules in three modes, and the pipelines stage over the corpus with the
gate: 26,000+ of 26,503 modules in 15 min, none failed. The largest module (26 MB of SPIR-V) was still compiling
alone on RADV after 25 min, as it would under the old gate. AI-assisted.
2026-11-23 00:30:02 +00:00
795c28d52e Merge pull request #3623 from erickbobd 2026-11-22 17:03:04 -05:00
26179b015e Merge pull request #3564 from Kam471 2026-11-22 17:02:44 -05:00
b27f24045e build: stop on inconclusive pipeline crash probes (BUILD-1030) 2026-11-22 18:57:37 -03:00
30e676038b build: stop pipeline batches on native setup failures (BUILD-1030) 2026-11-22 18:24:03 -03:00
e4617613e7 build: bound pipeline checks and recover collective crashes (BUILD-1030) 2026-11-22 18:07:48 -03:00
c9817d623f Audit wave64 graphics pipelines for the selected Vulkan device
Combine real graphics-chain manifests and translator wave tiers with per-stage Vulkan subgroup properties. Report aggregate counts and offer a strict gate for approximate or unverified stages.

AI-assisted. Tested with synthetic 32/64-lane capabilities, translated hand-written RDNA2 programs, and the live Vulkan probe on Mesa llvmpipe.
2026-11-22 21:58:22 +01:00
61acbb860e docs: document the vk_pipeline_check options 2026-11-22 20:56:24 +00:00
967d1870f5 BUILD-1035: Support pipeline crash isolation on Windows 2026-11-22 21:53:07 +01:00
9f53808e02 Merge pull request #2713 from Capital 2026-11-22 13:17:16 -05:00
86d92e13ad [BUILD-761] Validate SPIR-V file framing before creating modules 2026-11-22 18:59:19 +01:00
0cb7b7bf41 [BUILD-748] Check mesh workgroup memory before pipeline compilation 2026-11-22 18:52:11 +01:00
e52eb24aa8 Merge pull request #1958 from Capital 2026-11-22 10:39:46 -05:00
ced200b263 [BUILD-546] Check compute workgroup memory before pipeline compilation 2026-11-22 16:15:45 +01:00
613d90052b Merge pull request #1847 from SirAmong 2026-11-22 09:48:43 -05:00
5c66e611f0 vk_pipeline_check: a missing, unreadable or empty index.json is an error, not an empty corpus (TEST-257)
read_index did not check that the stream opened and returned an empty index,
with no error, for an empty input, so a wrong directory exited 0 after checking
nothing. Both now set the error (exit 2, before Vulkan is loaded); a valid {}
stays an intentionally empty index. tests/test_vk_pipeline_check_index.py covers
missing, empty, whitespace-only, malformed and {} (no GPU needed).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 09:31:48 -05:00
e0416ce29d vk_pipeline_check: --isolate runs batches in child processes and records a module that kills the driver as failed (TEST-248)
--isolate (POSIX only; an error on Windows) runs the check in child processes
over --isolate-batch modules at a time. A child killed by a signal has its
batch bisected to the module, which is reported as MODULE CRASH, counted as a
failed pipeline and makes the exit status 1; the rest is checked as usual.
Children share cache.bin one after another (atomic saves). The test hook
VK_PIPELINE_CHECK_SIMULATE_CRASH=<name substring>[:SIGNAL] raises a signal
before a matching pipeline is created, so tests/test_vk_pipeline_check_isolate.py
checks this with five hand-assembled compute shaders and no crashing driver.
Normal (non-isolated) output is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 09:25:47 -05:00
f696ad2468 Check SPIR-V interfaces between translated graphics stages
Reflect actual binary user-defined inputs and outputs. Audit stage pairs and chains by location, component, type, and per-primitive domain. Handle arrays used for invocation indexing and explicit maintenance4 matching. Add batch reports, inspection, and standard-library regression tests.

Tested on Linux with synthetic modules and Mesa llvmpipe. VS+PS and VS+GS+PS fixtures draw 4096 expected pixels each. Vulkan validation and the auditor agree on the missing Location 5, Component 2 of a negative case. Mesh+PS fixtures pass spirv-val and the interface check. AI-assisted.
2026-11-22 14:22:26 +01:00
c603b8f8ff docs/pipeline_check: the wave64-emulated corpus (translation, chunked cache build, ScreenProbes)
Records the --wave64-emulate translation of all 26,503 shaders (spirv-val clean at 43d4703), why the cache build
runs one checker process per chunk (the driver compiler ran out of memory at 21,000 entries and grew past 100 GB
of commit in one process), the ScreenProbes typed-buffer decode bloat dcd8ecf fixed (#881), and the spirv4 result
(0-24,200, 0 failures). The spirv5 cache is still building.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:25:58 -05:00
f53fc3fa48 Merge upstream large-module scheduling with cache feedback 2026-11-21 22:56:39 -07:00
bb6bb741fd Compile large Vulkan shader modules exclusively 2026-11-22 01:27:49 -03:00
53d2c6126b Report application-cache feedback for compiled Vulkan pipelines 2026-11-21 21:22:43 -07:00
6ad7bd17a1 Merge pull request #695 from SirAmong 2026-11-21 21:08:42 -05:00
57f98f79e6 docs: stale GPU-verified rows, runner note, duplicated section, pipeline_check and valu_fuzz docstring (PROC-21)
From SuarezPM's list in #634, each point checked against main first:
- design.md: ps_scc_mask32 is no longer "not run on a GPU yet" (it passes on
  an RTX 4050 native and emulated, a Radeon 740M and, per #634, an RTX 2060
  SUPER); ps_med3_mods, the nine ps_f16_* fixtures and ms_v5_workgroup also
  pass on the RTX 4050 and the Radeon 740M.
- shader_validation.md: the GPU runners are no longer "future work" (names
  the four tools); the 16-bit/memory section was duplicated verbatim (lines
  269-292 and 335-358), the second copy is removed.
- pipeline_check.md: vk_pipeline_check does create graphics pipelines
  (vkCreateGraphicsPipelines); what it does not do is draw with them.
- valu_fuzz.py: the mem family generates dword..dwordx4 only; the docstring
  listed byte and short forms that MEM_OPS never produces.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 21:02:36 -05:00