Skip to content

[Bugfix][SM6.10] Allow LinAlgMatrix type in the validator#8441

Open
V-FEXrt wants to merge 3 commits into
microsoft:mainfrom
V-FEXrt:issue-8433
Open

[Bugfix][SM6.10] Allow LinAlgMatrix type in the validator#8441
V-FEXrt wants to merge 3 commits into
microsoft:mainfrom
V-FEXrt:issue-8433

Conversation

@V-FEXrt
Copy link
Copy Markdown
Collaborator

@V-FEXrt V-FEXrt commented May 11, 2026

Fixes #8433

The validator was rejecting %dx.types.LinAlgMatrix*** types causing debug build to be rejected. This PR notes that type as an allowed type

Copy link
Copy Markdown
Collaborator

@llvm-beanz llvm-beanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

@V-FEXrt
Copy link
Copy Markdown
Collaborator Author

V-FEXrt commented May 11, 2026

Haha ope I felt that coming :) Poking at figuring that out

@V-FEXrt
Copy link
Copy Markdown
Collaborator Author

V-FEXrt commented May 11, 2026

@llvm-beanz done!

return true;
// Allow LinAlgMatrix type.
if (dxilutil::IsHLSLLinAlgMatrixType(ST))
return true;
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Collaborator Author

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

Shader model 6.10: Cooperative Vector build fails when disabling optimizations

3 participants