Skip to content

Commit 7e58cb9

Browse files
committed
Update CopyConvert DXIL validation
1 parent 5ce81c4 commit 7e58cb9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

proposals/0035-linalg-matrix.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,13 @@ declare %dx.types.LinAlgMatrix<mangling> @dx.op.linAlgCopyConvertMatrix.[MatTy1]
12721272
Returns a new matrix which is a copy of the source matrix where the element and
12731273
use type of the returned matrix have been converted to `MatTy1` from `MatTy2`.
12741274
The source matrix remains valid and unmodified after this operation is applied.
1275-
Validation shall enforce that both matrices have the same scope and dimensions.
1275+
1276+
Validation shall enforce that:
1277+
* Both matrix types have the same scope
1278+
* If the transpose argument is `0` both matrices must have the same dimensions.
1279+
* If the transpose argument is `1` the dimensions of `MatTy1` and `MatTy2` are
1280+
swapped (the `M` dimension of `MatTy2` will match the `N` dimension of
1281+
`MatTy1`, and the `N` Dimension of `MatTy2` will match the `M` dimension of `MatTy1`).
12761282

12771283
```llvm
12781284
declare %dx.types.LinAlgMatrix<mangling> @dx.op.linAlgMatrixLoadFromDescriptor.[MatTy](

0 commit comments

Comments
 (0)