|
|
@ -102,6 +102,7 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept {
|
|
|
|
layer_stride = CalculateLayerStride(*this);
|
|
|
|
layer_stride = CalculateLayerStride(*this);
|
|
|
|
maybe_unaligned_layer_stride = CalculateLayerSize(*this);
|
|
|
|
maybe_unaligned_layer_stride = CalculateLayerSize(*this);
|
|
|
|
rescaleable &= (block.depth == 0) && resources.levels == 1;
|
|
|
|
rescaleable &= (block.depth == 0) && resources.levels == 1;
|
|
|
|
|
|
|
|
downscaleable = size.height > 512;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -135,6 +136,7 @@ ImageInfo::ImageInfo(const Tegra::Engines::Maxwell3D::Regs& regs, size_t index)
|
|
|
|
size.depth = rt.depth;
|
|
|
|
size.depth = rt.depth;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
rescaleable = block.depth == 0 && size.height > 256;
|
|
|
|
rescaleable = block.depth == 0 && size.height > 256;
|
|
|
|
|
|
|
|
downscaleable = size.height > 512;
|
|
|
|
type = ImageType::e2D;
|
|
|
|
type = ImageType::e2D;
|
|
|
|
resources.layers = rt.depth;
|
|
|
|
resources.layers = rt.depth;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -164,6 +166,7 @@ ImageInfo::ImageInfo(const Tegra::Engines::Maxwell3D::Regs& regs) noexcept {
|
|
|
|
size.depth = regs.zeta_depth;
|
|
|
|
size.depth = regs.zeta_depth;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
rescaleable = block.depth == 0 && size.height > 256;
|
|
|
|
rescaleable = block.depth == 0 && size.height > 256;
|
|
|
|
|
|
|
|
downscaleable = size.height > 512;
|
|
|
|
type = ImageType::e2D;
|
|
|
|
type = ImageType::e2D;
|
|
|
|
resources.layers = regs.zeta_depth;
|
|
|
|
resources.layers = regs.zeta_depth;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -197,6 +200,7 @@ ImageInfo::ImageInfo(const Tegra::Engines::Fermi2D::Surface& config) noexcept {
|
|
|
|
.depth = 1,
|
|
|
|
.depth = 1,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
rescaleable = block.depth == 0 && size.height > 256;
|
|
|
|
rescaleable = block.depth == 0 && size.height > 256;
|
|
|
|
|
|
|
|
downscaleable = size.height > 512;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|