Repository navigation
Declare dynamic sampled descriptor indexing in translated SPIR-V - #3045
whattheflop wants to merge 913 commits into
Conversation
|
AI-assisted Windows integration follow-up to the #2806 declaration-only control. The scratch prospective tree The unmodified translator output for Using the composite MSVC x64 harness, the original 3x2 RGBA8 texture and asymmetric-UV indexed triangle matched the CPU oracle at all 1,280 pixels on each GPU, with 386 covered. Maximum absolute channel error was 0.00407246 on RTX 3080 (616.64) and 0.00194824 on Radeon Graphics (25.10.30.02). Each readback was byte-identical to its prior control. Both serial draws used one native ICD, empty implicit layers, a 20-second deadline, and active Khronos 1.4.363 Core Checks and Synchronization with zero validation errors. First Light CPU tests passed 10 with 3 package-dependent skips, and all 3 focused translator tests passed. Synthetic First Light integration only. No retail assets or corpus coverage. #2894 concerns the separate |
|
AI-assisted integration check with #2894 at On Windows 11, the RTX 3080 (616.64) and Radeon iGPU (25.10.30.02) each matched a CPU point-sampling reference at all 4,096 pixels in both modes. Maximum f32 channel error was 2.97e-8 on each GPU, and d16 matched exactly. Khronos 1.4.363 reported Core Checks and Synchronization active with zero warnings or errors in all four runs. The ICD was isolated per process. This exercises #3045's feature enablement in the stock texture harness as well as #2894's readback path. Synthetic fixtures only. |
|
Tested
gfx1151 is RDNA 3.5, not RDNA2: this shows the translated SPIR-V gives the modelled words on a real driver, not that RDNA2 hardware does. AI-assisted (Claude Code). |
|
AI-assisted follow-up on I also rebuilt |
|
Tested e14290a on NVIDIA RTX 5060 Ti (Blackwell), subgroup 32..32, NVIDIA 621.01 (Vulkan 1.4.357), Windows 11: pass. First GPU run (the branch was CPU/source-checked only).
Tools: llvm-mc 23.1.6 (conda-forge, native Windows), Vulkan SDK 1.4.363.0 ( AI-assisted (Qoder): I rebuilt the tools, ran the GPU suite and the CPU test. |
Kam471
left a comment
There was a problem hiding this comment.
The translator change is correct: OpCapability SampledImageArrayDynamicIndexing (29) is emitted exactly once and only when a sampled array is dynamically indexed; the arrays are OpTypeRuntimeArray of sampled image/sampler with RuntimeDescriptorArray present, and the accesses are dynamic OpAccessChains. Of 36 translated modules, 35 are byte-identical and 1 adds only that capability; full semantic 4,145 OK, focused 3 OK, AB 50 OK, and the four changed TUs compile with cl /W4 in 12.1 s. No game data or absolute paths.
One correction: the body says the pipeline check verifies the feature before vkCreateShaderModule, but vk_pipeline_check.cpp:1202 checks it after the module is created at :1211. A missing-feature skip can therefore be preempted by a module-creation failure. Move the check before vkCreateShaderModule (or correct the body) and add a test for the missing-feature path.
|
AI-assisted native recheck after the upstream merge. At This run verifies pipeline creation. I paused stock |
|
Tested
The new fixture is a CPU (interpreter) fixture, so the changed lowering was not run on hardware here. This run shows it breaks nothing else on AMD. AI-assisted (Claude Code). No game files. |
# Conflicts: # docs/animation.md
# 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: # docs/design.md
# Conflicts: # runtime/README.md
- 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>
|
If #4206 lands first, its new mip helper replaces one tracked access. The verified scratch resolution routes the new access through dynamic_sampled_access and preserves the capability and metadata in all 20 mip fixtures. AI-assisted. |
- 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, 158 focused pytest tests and 318 subtests passed. Three LLVM-dependent tests skipped. Five CPU CTests passed. The sampled capability and required-feature metadata appeared where expected across 56 synthetic cases, and both assemblers’ outputs passed |
AI-assisted. This implements the existing coordination claim.
Changes
SampledImageArrayDynamicIndexingand publishshaderSampledImageArrayDynamicIndexingin the shader index when a runtime hash result indexes a sampled image or sampler array. This covers sampling, gathers, fetches, size and level queries, LOD queries and typed sampled aliases. Literal descriptor words still use the runtime hash lookup. Storage-only and descriptor-free shaders retain their existing declarations.vk_pipeline_checkreport a missing feature before module creation. The texture, sampler and store harnesses enable it when a module declares the capability and report unsupported devices. The existing bindless runtime already enables it. The A/B control-flow tool accepts the new metadata.docs/design.md. Non-uniform sampled access and the separate storage-image dynamic-indexing rule remain follow-up concerns.The missing declaration was reproduced in #2806 and #2887. The first report also contains a declaration-only GPU positive control. Vulkan VUID 10128.
Verification
spirv-valfor Vulkan 1.2. Head also passed for Vulkan 1.3. Text comparison found exactly one capability declaration added to 10 modules and byte-identical assembly for the other five. Both assembler backends wrote the expected feature toindex.json.vk_pipeline_check,vk_texture_test,vk_sampler_testandvk_store_testwith MSVC 19.38 and Vulkan SDK 1.4.363.0. Bothvk_pipeline_check_cliandshader_libraryCTests passed.