Skip to content

Increase input_attachment_index limit#4352

Merged
arcady-lunarg merged 1 commit into
KhronosGroup:mainfrom
rg3igalia:input-att-limit
Jul 23, 2026
Merged

Increase input_attachment_index limit#4352
arcady-lunarg merged 1 commit into
KhronosGroup:mainfrom
rg3igalia:input-att-limit

Conversation

@rg3igalia

Copy link
Copy Markdown
Contributor

The new limit is INT_MAX, as opposed to UINT_MAX, because INT_MAX is large enough and there are other places in the code where the value of the limit is cast to int.

The need to increase this comes from an upcoming Vulkan extension that will allow the indices to be much larger in practice, and I'm creating GLSL tests in CTS. I would very much like not to have to write SPIR-V assembly for this.

The new limit is INT_MAX, as opposed to UINT_MAX, because INT_MAX is
large enough and there are other places in the code where the value of
the limit is cast to int.
@CLAassistant

CLAassistant commented Jul 23, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@arcady-lunarg arcady-lunarg added the kokoro:run Trigger Google bot runs label Jul 23, 2026
@kokoro-team kokoro-team removed the kokoro:run Trigger Google bot runs label Jul 23, 2026
@arcady-lunarg

Copy link
Copy Markdown
Contributor

Apparently there's supposed to be a gl_MaxInputAttachments constant available in GLSL but that was never implemented in glslang.

@arcady-lunarg
arcady-lunarg merged commit a163b7f into KhronosGroup:main Jul 23, 2026
30 checks passed
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.

4 participants