Skip to content

[0035] DXIL Validator should catch undef Matrix uses #8464

@anupamachandra

Description

@anupamachandra

The LinAlg spec doesn't disallow unitialized LinAlg Matrices to be used in Matrix operations. So the code snippet below:

MatrixTy mat;
Buffer.Store(0, mat.Get(0));

produces:

 %3 = call half @dx.op.linAlgMatrixGetElement.f16.mC8M16N16U0S2(i32 -2147483630, ** %dx.types.LinAlgMatrixC8M16N16U0S2 undef**, i32 0)  ; LinAlgMatrixGetElement(matrix,threadLocalIndex)

Proposed Solution:
Improve user experience by haivng DXIL Validator catch this and emit errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions