-
Notifications
You must be signed in to change notification settings - Fork 860
[Bugfix][SM6.10] Allow LinAlgMatrix type in the validator #8441
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
Open
V-FEXrt
wants to merge
3
commits into
microsoft:main
Choose a base branch
from
V-FEXrt:issue-8433
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+38
−0
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
tools/clang/test/LitDXILValidation/LinAlgMatrix/linalgmatrix-type-allowed-in-dxil.ll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| ; RUN: %dxv %s 2>&1 | FileCheck %s | ||
|
|
||
| ; CHECK-NOT: uses a reserved prefix. | ||
| ; CHECK-NOT: Validation failed. | ||
| ; CHECK: Validation succeeded. | ||
|
|
||
| target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64" | ||
| target triple = "dxil-ms-dx" | ||
|
|
||
| %dx.types.LinAlgMatrixC8M16N16U0S0 = type { i8* } | ||
| %struct.ByteAddressBuffer = type { i32 } | ||
|
|
||
| define void @main() { | ||
| %1 = alloca %dx.types.LinAlgMatrixC8M16N16U0S0 | ||
| ret void | ||
| } | ||
|
|
||
| !dx.targetTypes = !{!0} | ||
| !llvm.ident = !{!1} | ||
| !dx.version = !{!2} | ||
| !dx.valver = !{!2} | ||
| !dx.shaderModel = !{!3} | ||
| !dx.resources = !{!4} | ||
| !dx.entryPoints = !{!7} | ||
|
|
||
| !0 = !{%dx.types.LinAlgMatrixC8M16N16U0S0 undef, i32 8, i32 16, i32 16, i32 0, i32 0} | ||
| !1 = !{!"dxc(private) 1.9.0.5348 (issue-8433, 167fd829e-dirty)"} | ||
| !2 = !{i32 1, i32 10} | ||
| !3 = !{!"cs", i32 6, i32 10} | ||
| !4 = !{!5, null, null, null} | ||
| !5 = !{!6} | ||
| !6 = !{i32 0, %struct.ByteAddressBuffer* undef, !"", i32 0, i32 0, i32 1, i32 11, i32 0, null} | ||
| !7 = !{void ()* @main, !"main", null, !4, !8} | ||
| !8 = !{i32 0, i64 8388625, i32 4, !9} | ||
| !9 = !{i32 8, i32 1, i32 1} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Ok for now, but as a follow up, I think we'll have to be careful where we allow this type in DXIL. For instance, we probably shouldn't allow it in user function parameters or return types. We should probably file an issue, since this change alone might lead us to be overly-permissive of the type.
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 think there are a couple cases were it is in the return type of final DXIL but I'll go ahead and file an issues to tighten this up
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.
https://github.com/microsoft/hlsl-specs/issues/865