Skip to content

Commit

Permalink
Remove dead code (KhronosGroup#5195)
Browse files Browse the repository at this point in the history
* Execution model limitation was never executed and the check actually
  belongs with other opcodes
  • Loading branch information
alan-baker authored Apr 14, 2023
1 parent 55bc37f commit d5f69db
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions source/val/validate_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1659,13 +1659,6 @@ spv_result_t ValidateImageRead(ValidationState_t& _, const Instruction* inst) {
return _.diag(SPV_ERROR_INVALID_DATA, inst)
<< "Image Dim TileImageDataEXT cannot be used with "
<< spvOpcodeString(opcode);

_.function(inst->function()->id())
->RegisterExecutionModelLimitation(
spv::ExecutionModel::Fragment,
std::string(
"Dim TileImageDataEXT requires Fragment execution model: ") +
spvOpcodeString(opcode));
}

if (_.GetIdOpcode(info.sampled_type) != spv::Op::OpTypeVoid) {
Expand Down

0 comments on commit d5f69db

Please sign in to comment.