-
Notifications
You must be signed in to change notification settings - Fork 844
[SPIR-V] Support global structures containing buffers #8301
Copy link
Copy link
Open
Labels
bugBug, regression, crashBug, regression, crashneeds-triageAwaiting triageAwaiting triagespirvWork related to SPIR-VWork related to SPIR-V
Description
The following code works when targeting DXC:
https://hlsl.godbolt.org/z/MdMvsfe6z
struct B {
RWStructuredBuffer<float3x4> Bufs[2];
};
B b1;
B b2;
[numthreads(1,1,1)]
void main() {
float3x4 x = b1.Bufs[0][0];
float3x4 y = b1.Bufs[1][0];
b2.Bufs[0][0] = x + y;
b2.Bufs[1][0] = x - y;
}We intentionally fail when targeting SPIR-V
Line 11 in b87d15d
| // CHECK: 12:3: error: global structures containing buffers are not supported |
For now the plan is to mark this as not supported in SPIR-V for the offload test suite.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugBug, regression, crashBug, regression, crashneeds-triageAwaiting triageAwaiting triagespirvWork related to SPIR-VWork related to SPIR-V
Type
Projects
Status
No status