mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +00:00
resource_tracking_pass: Allow derivatives for 2D array images. (#1000)
This commit is contained in:
parent
171e475f80
commit
913a46173a
1 changed files with 2 additions and 1 deletions
|
@ -584,7 +584,8 @@ void PatchImageInstruction(IR::Block& block, IR::Inst& inst, Info& info, Descrip
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (inst_info.has_derivatives) {
|
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");
|
"User derivatives only supported for 2D images");
|
||||||
}
|
}
|
||||||
if (inst_info.has_lod_clamp) {
|
if (inst_info.has_lod_clamp) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue