dxc generates invalid alignment on groupshared matrix load/store instructions #6416
Labels
bug
Bug, regression, crash
correctness
Bugs that impact shader correctness
matrix-bug
Bugs relating to matrix types
Milestone
Description
When loading or storing a matrix to
groupshared
dxc is using an alignment on the instruction that is not guaranteed by the underlying global variable.Steps to Reproduce
https://godbolt.org/z/9c9os31MW
Actual Behavior
Compiling this shader produces loads and stores that do not match the alignment of the underlying global.
The global does not specify an alignment so it will get the default alignment of 4 for this type
But the load
and store
both specify an alignment of
align 16
for the first element (other elements are overaligned as well).From the llvm language reference manual, the aligment on the instruction should be guaranteed by somehow, but the alignment of the global does not do it.
Environment
The text was updated successfully, but these errors were encountered: