[SM6.10][Bugfix][Exec] Final test tweaks for preview#8393
[SM6.10][Bugfix][Exec] Final test tweaks for preview#8393V-FEXrt merged 4 commits intomicrosoft:mainfrom
Conversation
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
tex3d
left a comment
There was a problem hiding this comment.
I think it would be better to always pass STRIDE in bytes (and side chat brought up OFFSET, so same issue), then divide STRIDE and OFFSET by ELEM_SIZE for any groupshared array based operations. That's assuming ELEM_SIZE is represents the native HLSL scalar size, which is different than the element size for packed elements!
|
Just to be clear, so for groupshared operation, the input offset to load&store is element count, not the byte offset? For coordToByteOffset(), since coord.xy is (row, column), it should change to (coord.x * N_DIM + coord.y) * ELEM_SIZE for row major offset calculation. |
Yes! The spec needs to be clarified on this point. I'll be making that change after preview processes calm down
Per the other thread, I'm still not sure we agree on this point. I am happy to revisit it post-preview though just to really confirm. Since the smoke test matrices are all square this shouldn't effect the current tests even if it's wrong as is. We'll be adding non-square tests very soon so we'll be forced to get it right at that point regardless |
thanks confirm the offset to group share operation. |
This is the final test change PR going into the initial preview build. We'll continue to add tests after the build that can be pulled from main or the preview branch.
In this PR are the following changes
stridebe the number of "row elements" previously we were setting the "row bytes". This has been fixed