Repository navigation
Declare dynamic storage image indexing in translated SPIR-V - #3187
whattheflop wants to merge 917 commits into
Conversation
|
AI-assisted native integration check for #3187 at On Windows 11, RTX 3080 (616.64) and Radeon iGPU (25.10.30.02) each passed |
|
Tested a9dd291 on Steam Deck LCD (Jupiter), AMD Custom GPU 0405 "Van Gogh", RADV Mesa 26.2.0-devel (git-5c65d4fc31), Vulkan 1.4.350, SteamOS 3.9.5 (holo), kernel 7.2.7-valve2-2-neptune-72-g31504582a073: pass. Python/semantic tests:
Full GPU suite (built PR runtime in a separate build dir due to runtime test C++ changes, then ran suite against that build):
Note: tested PR head as submitted (PR description lists dependency on #3045). AI-assisted (OpenCode). |
|
AI-assisted native recheck after the upstream reconciliation. Scratch tree |
kacper-serewis
left a comment
There was a problem hiding this comment.
AI-assisted independent CPU review of ee0d2c5 found no blocker; #3045 remains first in merge order. Across29 synthetic cases, storage capability/feature metadata appeared exactly for dynamic storage-array indexing, covering typed stores/coherent loads in four dimensions,2D/3D atomics/cmpswap,mixed/sampled-only/constant controls. Literal descriptors resolved via runtime lookup correctly retain dynamic indexing. Both Python and SDK assemblers passed Vulkan1.2/1.3 validation:116/116 outputs;21 typed-load tests pass. Checker source-order regression and accounting trace confirm missing features skip before module read/creation, with one completion and no module-success/failure increments. CPU source/test verification only, noGPU or archives.
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested a9dd291 (on
AI-assisted (Claude Code). |
|
Tested Linux runtime built from the branch (CMake + Ninja, GCC, RelWithDebInfo), with the changed
AI-assisted (Claude Code). Synthetic test shaders only, no game files. |
Flyander
left a comment
There was a problem hiding this comment.
Reviewed the storage-indexing delta at ee0d2c5117d1f2c061fa03549aa7562160395097.
test_sampled_dynamic_index.pyvia unittest discovery — 6 tests passed.test_image_load_typed.py— 21 passed, 2 skipped.test_vk_pipeline_check_index.py— 1 passed, 1 skipped.- No game files used. I did not compile the C++ targets or rerun GPU/runtime tests; the PR discussion contains independent CPU and GPU validation.
I found no correctness issue in the storage-capability declaration and gating paths. This PR depends on #3045, which is still open, and GitHub checks were pending at review time; this approval covers the storage delta after that dependency is incorporated.
# Conflicts: # docs/design.md
# Conflicts: # docs/design.md
# Conflicts: # docs/design.md
# Conflicts: # docs/character_skeleton.md
# Conflicts: # docs/design.md
# Conflicts: # docs/design.md
# Conflicts: # README.md
# Conflicts: # docs/design.md
# Conflicts: # docs/design.md
# Conflicts: # runtime/README.md
|
Tested ee0d2c5 on NVIDIA GeForce GTX 1660 (Turing, TU116, subgroup 32..32), driver 620.73.04 (proprietary, Vulkan 1.4.357), Arch Linux (kernel 6.18): pass, no regression. Native build of runtime/ from this head (Ninja, RelWithDebInfo, clang 23.1.5), llvm-mc 23.1.5, SPIRV-Tools v2026.4.
AI-assisted run (Claude). Synthetic programs only, no game files involved. |
- design.md: escape the literal pipes that split contract-table rows again, and merge the 76 repeated topics into one row each (sentence by sentence; no number dropped). - d3d12_vulkan.md: one milestone row per ID (the most complete of each), and LEONIDA_ARENA_LOG documented with the arena high-water report (D3D-55). - navmesh.md: one item 4 and 5 under Remaining unknowns (the +0xB8 footprint and octree-key wording). - sandbox.md: name vk_sandbox's source file; i18n index: one pt-BR row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- replay_cpu_bench: ItsNotRexed#3693 moved a draw's render targets and vertex buffers into Draw::views (D3D-391); the bench builds a DrawViews block instead of writing the old inline arrays. - xgameruntime_user_test links file_system.cpp, which now defines rt::fs::game_dir that xgameruntime.cpp calls. - check_sparse_queue_family: a vkCreateInstance refused because the api_dump/validation layer is not installed is the documented "layer absent" skip (77), not a failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
AI-assisted CPU integration check with upstream 03b09a0 after #4278. #3045 and this stacked head each merged cleanly in scratch. Both MSVC checker builds and large_module_gate / vk_pipeline_check_cli CTests passed, plus eight checker-index tests per tree. A stubbed worker probe passed 11 cases per tree: missing sampled or storage support skips before acquiring a budget ticket or attempting module creation. The combined tree also passed 80 descriptor, control-flow and typed-image tests. No Vulkan device or game files. |
- test_bary_fallback: ItsNotRexed#3647 (BUILD-1046) made a missing input folder exit 2 with "does not exist"; the test from ItsNotRexed#1379 still expected exit 1. - test_format_decode_branch: the f16 reference uses the interpreter's pinned half_to_float (a NaN half widens to the canonical quiet NaN) instead of struct's '<e', whose NaN payload changed in Python 3.14 (CPython gh-130317). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merges that each passed alone but clash together: - v_cmp_class_f64: the earlier cmp_class_f64 (685d16e) (operand-form checks, test_cmp_class_f64) and the later f64 branch in cmp_class both handled the opcode; f64 goes to cmp_class_f64 again, f16 stays in cmp_class. - rdna2spirv CLI tests: spirv-as/spirv-val now run in the output folder with the staging file's bare name, so the test doubles resolve it against cwd; assemble_spirv decodes the output only when it is bytes. (The doubles had been writing .spirv-*.tmp files into the repository root.) - ps_w64 fixtures (TEST-722): an 18th fixture (ps_w64_a_discard) landed; its killed lanes export nothing and keep the clear value. - first_light: a run without an OBJ removes mesh.bin, and harness_env reads manifest["files"]; batch_glb's stats name failures and dropped textures; run_gpu_tests reports a frame never written as a missing readback (TEST-837). - make_game TRANSLATION_SOURCES and runtime.yml's paths include spirv_opt.py and report_paths.py (and wave64_emulate_opt.py), which the translator imports. Repo rules: stdout guard on six tools; encoding on two opens (gen_gdk_runtime_classes' helper is read_utf8); newline on one write; anim_skeleton_match's joaat encodes like hashdict.joaat; test_feature_scan's new test is listed with the others its globals() runner reaches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # docs/runtime_imports.md # runtime/CMakeLists.txt # runtime/shims/xgameruntime.cpp # runtime/test/xmem_test.cpp # tools/rdna2spirv.py
- rdna2spirv: %fmt_size_tab (main's typed-load size table) registers its length and entry constants when a load
first uses it; created at assembly, %c128 came after the OpTypeArray naming it and spirv-val refused
buffer_store_format_d16 modules (test_u16_high_half).
- test_vs_packed_inputs matches main's wording of the same SHADER-644 rule ("mixed component types").
- test_mutations: the v_mul_legacy_f32 anchor follows the SHADER-340 flushes (it had stopped matching on main).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ItsNotRexed#2887 added the fixture to the M2 build; with no entry in OTHER_HARNESS the GPU suite reported it as "no checker defined". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Round-43 reconciliation is up at On Windows with uv CPython 3.12.13, 161 focused pytest tests and 332 subtests passed. Three LLVM-dependent tests skipped. Five CPU CTests passed and |
|
Tested Rebuilt and reran after the head update. AI-assisted verification with synthetic inputs. |
Depends on: #3045
This AI-assisted follow-up implements the existing coordination claim. It targets upstream
main, so its comparison includes the pending #3045 commits until the parent lands. The storage-only changes are the single commit on top ofe14290a4b90dbe5985e7a4c7e4628cf2b878bd99.Changes
StorageImageArrayDynamicIndexingand listshaderStorageImageArrayDynamicIndexinginindex.jsonwhen the T# hash result indexes a storage image array. This covers typed stores, coherent typed loads, and the 2D and 3DOpImageTexelPointerpaths, including compare-exchange. Plain typed loads continue to use sampled aliases. Vulkan VUID 10130.vk_pipeline_check, using the same skip accounting as sampled indexing. The store and bindless test harnesses request the storage feature when their modules declare it and report unsupported devices. Production D3D12 already enables the core feature for bindless.Verification
spirv-valfor Vulkan 1.2 and 1.3. Fourteen modules gained only the storage capability declaration. The sampled-only and constant-register controls were byte-identical. A constant storage descriptor control also validated without the dynamic capability.index.jsonfeatures. Both controls remained byte-identical. The checker regression covers both features at the worker call site.vk_pipeline_check,vk_store_test,vk_bindless_test,vk_texture_test,vk_sampler_testandshader_library_test. Thevk_pipeline_check_cliandshader_libraryCTests passed. Verification used synthetic inputs and CPU/source checks throughout. Two optional valid-index cases that enter Vulkan were left out.