Skip to content

[Vulkan] Use the uniform texel buffer type for Buffer SRV#1041

Open
bogner wants to merge 1 commit intollvm:mainfrom
bogner:2026-03-30-uniform-texel
Open

[Vulkan] Use the uniform texel buffer type for Buffer SRV#1041
bogner wants to merge 1 commit intollvm:mainfrom
bogner:2026-03-30-uniform-texel

Conversation

@bogner
Copy link
Copy Markdown
Contributor

@bogner bogner commented Mar 31, 2026

We had VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER for the Buffer type, but for SRVs we need VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER.

Fixes #1030

We were setting VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER for the `Buffer`
type, but for SRVs we need VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER here.

Fixes llvm#1030
@bogner bogner added the test-all When applied to a PR this will opt-in to additional pre-merge test configurations.. label Mar 31, 2026
@kmpeng
Copy link
Copy Markdown
Contributor

kmpeng commented Mar 31, 2026

FYI I merged in the typed buffer PR, so could you also remove the XFAIL from 64bit-scalar.test and the Bug comment from 64bit-vector.test with this change?

@Icohedron
Copy link
Copy Markdown
Contributor

It appears this PR fixes #469 and #523 as well

@Icohedron
Copy link
Copy Markdown
Contributor

Icohedron commented Apr 1, 2026

It appears this PR fixes #469 and #523 as well

Or, actually not #469. This pass makes QC and NVIDIA now pass, but Intel still fails due to returning [16, 16]. #469 should be relabeled to be Intel-specific

Copy link
Copy Markdown
Contributor

@manon-traverse manon-traverse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this is the correct descriptor type for Buffer.

Copy link
Copy Markdown
Contributor

@MarijnS95 MarijnS95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep that is correct for Buffer which is bound as SRV in DirecyX (but for StructuredBuffer which is also bound as SRV, it remains a STORAGE_BUFFER and not a UNIFORM_BUFFER).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-all When applied to a PR this will opt-in to additional pre-merge test configurations..

Projects

None yet

5 participants