Repository navigation
Vulkan: every vertex input's type in the graphics program key (VUID-...-Input-08733) - #208
Open
DennisR-git wants to merge 1 commit into
Open
DennisR-git wants to merge 1 commit into
DennisR-git wants to merge 1 commit into
Conversation
…..-Input-08733) graphics_key() put an input's type into the key only when the program header marks the input as read, but translate_into() passes every input's real type (generic_input_types) and Eden declares the inputs the code loads. Two draws with a float and an integer attribute at such an input shared one program, and the pipeline's vertex format did not match the shader's input type: VUID-VkGraphicsPipelineCreateInfo-Input-08733 (R8G8_UINT / R8G8B8A8_UINT at an input declared vec4 float), seen with Khronos validation on an Intel Arc B580. With every input's type in the key the error is gone; no visible change was measured. RX_VK_KEY_HEADER_TYPES=1 restores the old key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
biosed
added a commit
to biosed/ProjectReLink
that referenced
this pull request
Nov 25, 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.
With Khronos validation (
RX_VK_VALIDATION=1) on an Intel Arc B580 (v0.7.9.4), this error shows up:The same error appears with
R8G8B8A8_UINTandR8_UINT, always at Location 6.Cause:
graphics_key()puts an input's type into the key only when the program header marks that input as read.translate_into(), however, passes every input's real type (generic_input_types), and Eden declares the inputs the codeloads. So a draw with a float attribute and a draw with an integer attribute at the same input can share one translated program,
and the pipeline's vertex format then does not match the shader's input.
Change: every input's type goes into the key.
RX_VK_KEY_HEADER_TYPES=1restores the old key for A/B tests.Tested (validation on):
RX_VK_KEY_HEADER_TYPES=1)There was no visible change in the game on Arc; this mainly makes the validation output clean.
vk_shader.cppis part ofRELINK_SHADER_STAMP, so existing program caches are rebuilt automatically. The cost is a few more program variants where onlyunread attributes differ.
🤖 Generated with Claude Code