Skip to content

Vulkan: every vertex input's type in the graphics program key (VUID-...-Input-08733) - #208

Open
DennisR-git wants to merge 1 commit into
pixl27:mainfrom
DennisR-git:vulkan-vertex-input-key
Open

DennisR-git wants to merge 1 commit into
pixl27:mainfrom
DennisR-git:vulkan-vertex-input-key

Conversation

@DennisR-git

Copy link
Copy Markdown

With Khronos validation (RX_VK_VALIDATION=1) on an Intel Arc B580 (v0.7.9.4), this error shows up:

VUID-VkGraphicsPipelineCreateInfo-Input-08733: pVertexAttributeDescriptions[4].format (VK_FORMAT_R8G8_UINT) at Location 6
does not match [Input variable, Location 6, "in_attr6"] type of (vec4 of float32)

The same error appears with R8G8B8A8_UINT and R8_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 code
loads. 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=1 restores the old key for A/B tests.

Tested (validation on):

Run Input-08733
original present
patch, program cache rebuilt gone
patch built, old key forced (RX_VK_KEY_HEADER_TYPES=1) present again

There was no visible change in the game on Arc; this mainly makes the validation output clean. vk_shader.cpp is part of
RELINK_SHADER_STAMP, so existing program caches are rebuilt automatically. The cost is a few more program variants where only
unread attributes differ.

🤖 Generated with Claude Code

…..-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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant