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
However, in SPIR-V we have:
OpMemberDecorate %_struct_8 0 Offset 0
OpMemberDecorate %_struct_8 1 Offset 4 ; this should be offset 16
So two bugs, really: Mismatch between descriptormap and the declared struct offset. Should make the declared struct offset the same as what's reported in the descriptormap.
The text was updated successfully, but these errors were encountered:
Take alignment into account, by using the DataLayout
for the target.
Also makes it match the descriptormap output, which is already
more correct.
Fixesgoogle#27
Example:
Compile with:
clspv align.cl -o align.spv -cluster-pod-kernel-args -descriptormap=foot
Then the x and c arguments are collected into a single struct argument, for a storage buffer. The descriptor map is:
That's correct.
However, in SPIR-V we have:
OpMemberDecorate %_struct_8 0 Offset 0
OpMemberDecorate %_struct_8 1 Offset 4 ; this should be offset 16
So two bugs, really: Mismatch between descriptormap and the declared struct offset. Should make the declared struct offset the same as what's reported in the descriptormap.
The text was updated successfully, but these errors were encountered: