Skip to content

[SM6.10] LinAlg Validation: MatrixLoadFromDescriptor - #8641

Merged
Ashley Coleman (V-FEXrt) merged 1 commit into
microsoft:mainfrom
V-FEXrt:linalg-validation-matrixloadfromdescriptor
Jul 29, 2026
Merged

Ashley Coleman (V-FEXrt) merged 1 commit into
microsoft:mainfrom
V-FEXrt:linalg-validation-matrixloadfromdescriptor

Conversation

@V-FEXrt

Copy link
Copy Markdown
Collaborator

Fixes #8496

@bob80905 Joshua Batista (bob80905) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@V-FEXrt
Ashley Coleman (V-FEXrt) force-pushed the linalg-validation-matrixloadfromdescriptor branch from 6653107 to 2db7aee Compare July 28, 2026 22:17

@damyanp Damyan Pepper (damyanp) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One take-it-or-leave-it suggestion.

ValidateLinAlgOpReturnMatrix(CI, ValCtx);
ValidateLinAlgOpParameters(CI, ValCtx);

Type *RetMatTy = CI->getType();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Even though I guess this is a one-off bit of validation, wondering if this would be clearer if it were factored out into a function rather than inlined in this massive switch statement?

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've been going back and forth a lot on this lol!

There is very little reuse between cases but I still think pulling it out into set functions is probably worth it for readability. Do you mind if I do that cleanup after getting the current gamut of PRs go in?

(Doing the function thing will also help a lot with merge conflict avoidance)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, no worries with doing this later.

@V-FEXrt
Ashley Coleman (V-FEXrt) merged commit 4c23ec0 into microsoft:main Jul 29, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap Jul 29, 2026
@V-FEXrt
Ashley Coleman (V-FEXrt) deleted the linalg-validation-matrixloadfromdescriptor branch July 29, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

LinAlg Validation: MatrixLoadFromDescriptor

3 participants