diff --git a/include/dxc/DXIL/DxilConstants.h b/include/dxc/DXIL/DxilConstants.h index a2c4e8b9f2..86fd6d825a 100644 --- a/include/dxc/DXIL/DxilConstants.h +++ b/include/dxc/DXIL/DxilConstants.h @@ -204,6 +204,13 @@ enum class MatrixScope : uint32_t { ThreadGroup = 2, }; +enum class LinalgMatrixLayout : uint32_t { + RowMajor = 0, + ColumnMajor = 1, + MulOptimal = 2, + OuterProductOptimal = 3, +}; + // Must match D3D_INTERPOLATION_MODE enum class InterpolationMode : uint8_t { Undefined = 0, diff --git a/lib/DxilValidation/DxilValidation.cpp b/lib/DxilValidation/DxilValidation.cpp index ab3ef39d2b..ab9dd697d9 100644 --- a/lib/DxilValidation/DxilValidation.cpp +++ b/lib/DxilValidation/DxilValidation.cpp @@ -974,28 +974,6 @@ static void ValidateImmOperandForMathDxilOp(CallInst *CI, DXIL::OpCode Opcode, } } -static bool CheckLinalgInterpretation(uint32_t Input, bool InRegister) { - using CT = DXIL::ComponentType; - switch (static_cast(Input)) { - case CT::I16: - case CT::U16: - case CT::I32: - case CT::U32: - case CT::F16: - case CT::F32: - case CT::U8: - case CT::I8: - case CT::F8_E4M3: - case CT::F8_E5M2: - return true; - case CT::PackedS8x32: - case CT::PackedU8x32: - return InRegister; - default: - return false; - } -} - // Validate the type-defined mask compared to the store value mask which // indicates which parts were defined returns true if caller should continue // validation