[HLSL] Add typed LinAlg CPU matrix oracle#8666
Draft
JoeCitizen wants to merge 3 commits into
Draft
Conversation
Use the shared MatrixUse parameter for the OuterProduct result and set it to Accumulator, matching proposal 0035 and the public dx::linalg API. Add a host-side invariant to prevent the legacy A-use declaration from returning. Assisted-by: GitHub Copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 83725f5d-8e98-4c1d-91ee-ad47629e007b
Create SRV buffers without UAV flags and transition them for both pixel and non-pixel shader access. Use a direct resource-initialization list so the graphics-only pixel state is legal. Assisted-by: GitHub Copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 83725f5d-8e98-4c1d-91ee-ad47629e007b
Add typed F16, F32, I32, and U32 matrix data with safe byte encoding, rectangular row/column-major storage mapping, and explicit exact, permitted-result, or excluded comparison policy. Cover offsets and padded strides with independent host goldens, and migrate the existing CopyConvert tests onto the oracle. Assisted-by: GitHub Copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 83725f5d-8e98-4c1d-91ee-ad47629e007b
This was referenced Jul 24, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The oracle in this PR is intentionally matrix-valued. Future descriptor OOB store/accumulate coverage must extend it with whole-destination-buffer candidates rather than treating untouched bytes as part of a matrix result.
Validation
ExecHLSLTeststargetLinAlgCPUOracleTests::TypedMatrixBufferRoundTriphost test, including independent raw-byte goldens for all four types, both memory layouts, offsets, padding, transpose and whole-result candidate semantics1.65535.20-previewwith D3D12 Agility SDK1.721.2-previewandExperimentalShaders=*git diff --checkpassNo physical GPU or HLK lab execution is claimed. No new LinAlg operation or component-type runtime coverage is added; CopyConvert is the representative migration only.
Stack
This draft is stacked on PR #8665, which is stacked on PR #8662. Until those ancestors land, this diff contains their commits as well. The typed-oracle change itself is commit
58fec81cc.Refs #7841
Refs #8649
Refs #8546
Assisted-by: GitHub Copilot