Skip to content

Commit

Permalink
Add OpImageSampleFootprintNV to IsAllowedSampledImageOperand (#5914)
Browse files Browse the repository at this point in the history
Closes #5913

* Add OpImageSampleFootprintNV to helpers in opcode.cpp
  • Loading branch information
expipiplus1 authored Dec 18, 2024
1 parent a466e9d commit 9295a8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/opcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ bool spvOpcodeIsLoad(const spv::Op opcode) {
case spv::Op::OpImageSampleProjExplicitLod:
case spv::Op::OpImageSampleProjDrefImplicitLod:
case spv::Op::OpImageSampleProjDrefExplicitLod:
case spv::Op::OpImageSampleFootprintNV:
case spv::Op::OpImageFetch:
case spv::Op::OpImageGather:
case spv::Op::OpImageDrefGather:
Expand Down Expand Up @@ -747,6 +748,7 @@ bool spvOpcodeIsImageSample(const spv::Op opcode) {
case spv::Op::OpImageSparseSampleExplicitLod:
case spv::Op::OpImageSparseSampleDrefImplicitLod:
case spv::Op::OpImageSparseSampleDrefExplicitLod:
case spv::Op::OpImageSampleFootprintNV:
return true;
default:
return false;
Expand Down
1 change: 1 addition & 0 deletions source/val/validate_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,7 @@ bool IsAllowedSampledImageOperand(spv::Op opcode, ValidationState_t& _) {
case spv::Op::OpImageBlockMatchWindowSSDQCOM:
case spv::Op::OpImageBlockMatchGatherSADQCOM:
case spv::Op::OpImageBlockMatchGatherSSDQCOM:
case spv::Op::OpImageSampleFootprintNV:
return true;
case spv::Op::OpStore:
if (_.HasCapability(spv::Capability::BindlessTextureNV)) return true;
Expand Down

0 comments on commit 9295a8b

Please sign in to comment.