Skip to content

Commit

Permalink
merge fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-baker committed Jan 24, 2024
1 parent 692129a commit ca32ab1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/val/validation_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,12 @@ bool ValidationState_t::IsAccelerationStructureType(uint32_t id) const {
}

bool ValidationState_t::IsCooperativeMatrixType(uint32_t id) const {
const Instruction* inst = FindDef(id);
return inst && (inst->opcode() == spv::Op::OpTypeCooperativeMatrixNV ||
inst->opcode() == spv::Op::OpTypeCooperativeMatrixKHR);
}

bool ValidationState_t::IsCooperativeMatrixNVType(uint32_t id) const {
const Instruction* inst = FindDef(id);
return inst && inst->opcode() == spv::Op::OpTypeCooperativeMatrixNV;
}
Expand Down

0 comments on commit ca32ab1

Please sign in to comment.