resource_tracking_pass: Allow derivatives for 2D array images. (#1000)

This commit is contained in:
squidbus 2024-09-21 05:19:01 -07:00 committed by GitHub
parent 9123dc4228
commit 4fc28b39af

View file

@ -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) {