[all-commits] [llvm/llvm-project] 1f6f05: [SPIR-V] Emit variable pointer capability for reso...
Helena Kotas via All-commits
all-commits at lists.llvm.org
Wed Sep 23 15:43:01 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1f6f059b8f15cc34c848f9030fb53e63771bbd2e
https://github.com/llvm/llvm-project/commit/1f6f059b8f15cc34c848f9030fb53e63771bbd2e
Author: Helena Kotas <hekotas at microsoft.com>
Date: 2026-09-23 (Wed, 23 Sep 2026)
Changed paths:
M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
M llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
M llvm/test/CodeGen/SPIRV/pointers/structured-buffer-access.ll
A llvm/test/CodeGen/SPIRV/pointers/variable-pointers-storage-buffer.ll
Log Message:
-----------
[SPIR-V] Emit variable pointer capability for resources (#225471)
A function-local SPIR-V variable whose allocated type contains a
`StorageBuffer` pointer requires the module to declare the
`VariablePointersStorageBuffer` capability.
This change detects that variable-pointer context while lowering
function-local variables and recursively checks nested aggregate types.
Directly used structured buffers do not enable the capability. It also
registers the capability as available for Vulkan targets that support
SPIR-V 1.3 or `SPV_KHR_variable_pointers`, and emits the extension when
targeting older SPIR-V versions.
Fixes: #202064
Assisted by GPT-5.6 Sol
---------
Co-authored-by: Copilot App <223556219+Copilot at users.noreply.github.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list