Skip to content

Commit

Permalink
resource_tracking_pass: Allow derivatives for 2D array images.
Browse files Browse the repository at this point in the history
  • Loading branch information
squidbus committed Sep 20, 2024
1 parent 0f4bcd8 commit 7a91bfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shader_recompiler/ir/passes/resource_tracking_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ void PatchImageInstruction(IR::Block& block, IR::Inst& inst, Info& info, Descrip
}
}
if (inst_info.has_derivatives) {
ASSERT_MSG(image.GetType() == AmdGpu::ImageType::Color2D,
ASSERT_MSG(image.GetType() == AmdGpu::ImageType::Color2D ||
image.GetType() == AmdGpu::ImageType::Color2DArray,
"User derivatives only supported for 2D images");
}
if (inst_info.has_lod_clamp) {
Expand Down

0 comments on commit 7a91bfc

Please sign in to comment.