-
Notifications
You must be signed in to change notification settings - Fork 25
Test coverage for arrays in cbuffers #505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This adds for arrays of various shapes in cbuffers. These currently fail due to layout issues, which are tracked by llvm/llvm-project#147352.
| Out[1] = w[2].z; | ||
| Out[2] = v[1].q; | ||
| Out[3] = v[2].q; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does accessing the array inside the struct work too with llvm/llvm-project#147352?
| } | |
| Out[4] = v[0].x[1]; | |
| Out[5] = v[2].x[0]; | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does. I've added the tests to show it.
| @@ -0,0 +1,101 @@ | |||
| #--- source.hlsl | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a cbuffer test. Either the PR description needs to be updated, or this test should be added in a separate change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I must have slipped this one in by accident. I'll remove it from this PR and commit it separately later.
inbelic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Relevant buffer visualization links for other reviewers:
This removes XFAILs in a few tests, or updates them to point at the appropriate follow up issues.
hekota
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This adds for arrays of various shapes in cbuffers that were failing before llvm/llvm-project#147352 was implemented, and updates XFAILs appropriately for that change.