You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DXIL] Broken codegen for loading elements from FP16 matrix types in StructuredBuffer #4492
On latest main I get the wrong result when loading elements from fp16 matrix types stored in structured buffers.
struct Data
{
float16_t4x4 a;
};
StructuredBuffer<Data> buf : register(t1);
...
float16_t2 b = buf.a[0].xy;
This loads elements a[0][0] and a[0][2], not a[0][1] as expected.
Looking at the generated code it looks like it thinks there is 4B between each element not 2B.
Activity