Skip to content

[SPIRV] Capture non-uniform resource index flag #160231

@hekota

Description

@hekota

PR #159608 introduced llvm.svp.resource.nonuniformindex intrinsic which is generated from NonUniformResourceIndex calls in HLSL (#159655).
When this intrinsic is used as part of the index value in a resource array/range, the resource needs to be marked with NonUniform flag.

The following test depends on this fearture and is currently marked XFAIL:
llvm/test/CodeGen/SPIRV/hlsl-resources/StorageImageNonUniformIdx.ll

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions