[all-commits] [llvm/llvm-project] d8295e: [SPIRV][HLSL] Handle arrays of resources (#111564)

Steven Perron via All-commits all-commits at lists.llvm.org
Wed Oct 30 12:01:24 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d8295e2eeceef37bfd9e0f84918735eff6cfc659
      https://github.com/llvm/llvm-project/commit/d8295e2eeceef37bfd9e0f84918735eff6cfc659
  Author: Steven Perron <stevenperron at google.com>
  Date:   2024-10-30 (Wed, 30 Oct 2024)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    M llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
    M llvm/lib/Target/SPIRV/SPIRVSymbolicOperands.td
    R llvm/test/CodeGen/SPIRV/HlslBufferLoad.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/CombinedSamplerImageDynIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/CombinedSamplerImageNonUniformIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/HlslBufferLoad.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/InputAttachmentImageDynIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/InputAttachmentImageNonUniformIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/SampledImageDynIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/SampledImageNonUniformIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/SamplerArrayDynIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/SamplerArrayNonUniformIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/StorageImageDynIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/StorageImageNonUniformIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/StorageTexelBufferDynIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/StorageTexelBufferNonUniformIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/UniformTexelBufferDynIdx.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/UniformTexelBufferNonUniformIdx.ll

  Log Message:
  -----------
  [SPIRV][HLSL] Handle arrays of resources (#111564)

This commit adds the ability to get a particular resource from an array
of resources using the handle_fromBinding intrinsic.

The main changes are:

1. Create an array when generating the type.
2. Add capabilities from

[SPV_EXT_descriptor_indexing](https://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/EXT/SPV_EXT_descriptor_indexing.html).

We are still missing the ability to declare a runtime array. That will
be done in a follow up PR.



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