Repository navigation
Conversation
|
Independent RTX 5070 / Windows run at
|
Contributor
|
Tested head 784580d merged onto AI-assisted (Claude Code); runs on my machine. |
3 tasks done
…ss_dwords is set When index.json's mesh_compute layout carries pc_tail_address_dwords (as produced by rdna2spirv.py --mesh-compute --pc-tail-ubo), emit the vertex shader's output-buffer address loads from the set-1 binding-0 Uniform block %pc_tail (%PcTail) instead of a 152-byte PushConstant block, omitting PushConstant completely so the vertex shader fits 128-byte push-constant devices. Without pc_tail_address_dwords, the emitted SPIR-V assembly is byte-identical to before. Co-Authored-By: Gemini 4 Neon <noreply@google.com>
whoalin1
force-pushed
the
mesh-compute-vs-pc-tail
branch
from
November 22, 2026 18:12
784580d to
41760b9
Compare
This was referenced Nov 22, 2026
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in #2300 (comment).
Depends on: #2046 (which adds
--pc-tail-uboand writespc_tail_address_dwords: [4, 5]intomesh_computemetadata).Summary
tools/mesh_compute_vs.py:mesh_computelayout containspc_tail_address_dwords(two non-negative ints, e.g.[4, 5]fromrdna2spirv.py --mesh-compute --pc-tail-ubo), emit the vertex shader's 64-bit output-buffer address loads from the set-1 binding-0 Uniform block%pc_tail(%PcTail, 24 bytes / 6 dwords) instead of a 152-byte%pcPushConstant block, and include%pc_tailinOpEntryPoint's interface.s0..s31, omitting thePushConstantblock leaves it at 0 push-constant bytes, so it links cleanly on 128-byte push-constant devices alongside a 128-byte--pc-tail-ubopixel shader.pc_tail_address_dwordsvalues (wrong length, negative, bool, non-int) withValueError.pc_tail_address_dwords,vs_spvasm()output is byte-identical tomain.tests/test_mesh_compute_vs.py: add interface check for%pc_tail/ set-1 binding-0 / noPushConstant, malformed-value validation tests, andspirv-as+spirv-val --target-env vulkan1.2assembly tests (plain, clip, clip+cull+params,f16_halves).tests/test_mesh_compute.py: addtest_vertex_shader_text_pc_tailand parametrizetest_vertex_shader_validatesacross both push-constant and--pc-tail-ubolayouts.Testing
All tests ran on Windows 11 with Python 3.14, Vulkan SDK 1.4.363 (
spirv-as/spirv-val,VK_LAYER_KHRONOS_validation),llvm-mc21, synthetic inputs only (no game data):pytest):tests/test_mesh_compute_vs.py,tests/test_mesh_compute.py,tests/test_text_write_line_endings.py: 43 passed, 10 subtests passed (0 failed).vs_spvasm()output withoutpc_tail_address_dwordsis byte-identical toorigin/mainacross plain, clip, clip+cull+params, andf16_halveslayouts.py -3.14 -m compileall -q tools/mesh_compute_vs.py tests/test_mesh_compute_vs.py tests/test_mesh_compute.py: clean.vk_pipeline_checkfrom vk_pipeline_check: support --pc-tail-ubo set-1 layouts and 128-byte push-constant devices #2480 withVK_LAYER_KHRONOS_validation, paired withspirv_stubs.pyPS stubs using#2046'smesh_compute_layout(..., PC_TAIL_UBO=True)):ms_tri.mesh_vs,ms_clip.mesh_vs).Checklist
git diff --checkclean)🤖 Generated with Antigravity (Gemini 4 Neon)