[llvm] [SPIRV][HLSL] Handle arrays of resources (PR #111564)
Steven Perron via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 13:08:38 PDT 2024
================
@@ -967,11 +1117,16 @@ void addInstrRequirements(const MachineInstr &MI,
case SPIRV::OpConstantSampler:
Reqs.addCapability(SPIRV::Capability::LiteralSampler);
break;
+ case SPIRV::OpAccessChain:
+ addOpAccessChainReqs(MI, Reqs, ST);
+ break;
case SPIRV::OpTypeImage:
addOpTypeImageReqs(MI, Reqs, ST);
break;
case SPIRV::OpTypeSampler:
- Reqs.addCapability(SPIRV::Capability::ImageBasic);
+ if (ST.isOpenCLEnv()) {
----------------
s-perron wrote:
Changed.
https://github.com/llvm/llvm-project/pull/111564
More information about the llvm-commits
mailing list