Skip to content

Comments

[SM6.10][specs/791] Align LinAlg Matrix Mul with spec#8183

Merged
V-FEXrt merged 1 commit intomainfrom
linalg-specs-791
Feb 20, 2026
Merged

[SM6.10][specs/791] Align LinAlg Matrix Mul with spec#8183
V-FEXrt merged 1 commit intomainfrom
linalg-specs-791

Conversation

@V-FEXrt
Copy link
Collaborator

@V-FEXrt V-FEXrt commented Feb 20, 2026

microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the placeholder code to reflect that.

Interesting changes are in gen_intrin_main, hctdb.py, and HLOperationLower.cpp. The rest of the code is generated code

microsoft/hlsl-specs#791 splits the MulOp
operation into two distinct ops. Update the implementation to
reflect that
"o,o,o,o",
"",
[
db_dxil_param(0, "$x0", "", "resulting matrix"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

is skipping over 1 intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep! 1 is the const int opcode which is inserted automatically

"applies a multiplication op to matrix C using A and B as parameters",
"LinAlgMatrixMultiply",
"LinAlgMatrixMultiply",
"Returns the resulting matrix from multiplying A and B",
Copy link
Collaborator

Choose a reason for hiding this comment

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

this one doesn't need db_dxil_params?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It has them just below the diff!

The params of this op didn't change, just the name as description

Copy link
Collaborator

Choose a reason for hiding this comment

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

haha im just blind!

@V-FEXrt V-FEXrt merged commit 720acdf into main Feb 20, 2026
14 checks passed
@V-FEXrt V-FEXrt deleted the linalg-specs-791 branch February 20, 2026 20:11
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Feb 20, 2026
luciechoi pushed a commit to luciechoi/DirectXShaderCompiler that referenced this pull request Feb 20, 2026
microsoft/hlsl-specs#791 splits the MulOp
operation into two distinct ops. Update the placeholder code to reflect
that.

Interesting changes are in `gen_intrin_main`, `hctdb.py`, and
`HLOperationLower.cpp`. The rest of the code is generated code
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.

4 participants