Skip to content

Commit e589de4

Browse files
authored
Merge pull request #11 from damyanp/copilot/fix-linux-macos-build-issues
Fix Linux/macOS build failures caused by removal of CoopVec ops (PR microsoft#8291)
2 parents 7a1d568 + 3547cb0 commit e589de4

2 files changed

Lines changed: 7 additions & 22 deletions

File tree

include/dxc/DXIL/DxilConstants.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ enum class MatrixScope : uint32_t {
204204
ThreadGroup = 2,
205205
};
206206

207+
enum class LinalgMatrixLayout : uint32_t {
208+
RowMajor = 0,
209+
ColumnMajor = 1,
210+
MulOptimal = 2,
211+
OuterProductOptimal = 3,
212+
};
213+
207214
// Must match D3D_INTERPOLATION_MODE
208215
enum class InterpolationMode : uint8_t {
209216
Undefined = 0,

lib/DxilValidation/DxilValidation.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -974,28 +974,6 @@ static void ValidateImmOperandForMathDxilOp(CallInst *CI, DXIL::OpCode Opcode,
974974
}
975975
}
976976

977-
static bool CheckLinalgInterpretation(uint32_t Input, bool InRegister) {
978-
using CT = DXIL::ComponentType;
979-
switch (static_cast<CT>(Input)) {
980-
case CT::I16:
981-
case CT::U16:
982-
case CT::I32:
983-
case CT::U32:
984-
case CT::F16:
985-
case CT::F32:
986-
case CT::U8:
987-
case CT::I8:
988-
case CT::F8_E4M3:
989-
case CT::F8_E5M2:
990-
return true;
991-
case CT::PackedS8x32:
992-
case CT::PackedU8x32:
993-
return InRegister;
994-
default:
995-
return false;
996-
}
997-
}
998-
999977
// Validate the type-defined mask compared to the store value mask which
1000978
// indicates which parts were defined returns true if caller should continue
1001979
// validation

0 commit comments

Comments
 (0)