Skip to content

[SPIR-V] support externally initialized non-floating-point column-major matrices #8302

@farzonl

Description

@farzonl

The following code is supported when targeting DirectX but is gated by an error when targeting spirv
https://hlsl.godbolt.org/z/zr9P6GKhx

struct A {
  RWStructuredBuffer<int3x2> Buf;
};

A a1;
A a2;

[numthreads(1,1,1)]
void main() {
  int3x2 m = a1.Buf[0];
  a2.Buf[0] = m * 2;
}

// CHECK: :11:21: error: externally initialized non-floating-point column-major matrices not supported yet

// CHECK: :6:5: error: externally initialized non-floating-point column-major matrices not supported yet

For now marking these as not supported for the offload test suite when targeting spirv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triagespirvWork related to SPIR-V

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions