Test
This commit is contained in:
parent
fdbbce1469
commit
55af477cc4
1 changed files with 6 additions and 8 deletions
|
@ -23,7 +23,7 @@ using VideoCore::Surface::PixelFormat;
|
||||||
using VideoCore::Surface::SurfaceType;
|
using VideoCore::Surface::SurfaceType;
|
||||||
|
|
||||||
constexpr u32 RescaleHeightThreshold = 288;
|
constexpr u32 RescaleHeightThreshold = 288;
|
||||||
constexpr u32 DownscaleHeightThreshold = 512;
|
constexpr u32 DownscaleHeightThreshold = 128;
|
||||||
|
|
||||||
ImageInfo::ImageInfo(const TICEntry& config) noexcept {
|
ImageInfo::ImageInfo(const TICEntry& config) noexcept {
|
||||||
forced_flushed = config.IsPitchLinear() && !Settings::values.use_reactive_flushing.GetValue();
|
forced_flushed = config.IsPitchLinear() && !Settings::values.use_reactive_flushing.GetValue();
|
||||||
|
@ -193,16 +193,14 @@ ImageInfo::ImageInfo(const Maxwell3D::Regs::Zeta& zt, const Maxwell3D::Regs::Zet
|
||||||
size.depth = zt_size.depth;
|
size.depth = zt_size.depth;
|
||||||
} else {
|
} else {
|
||||||
rescaleable = block.depth == 0;
|
rescaleable = block.depth == 0;
|
||||||
// TODO: Check if this is correct
|
|
||||||
// downscaleable = size.height > DownscaleHeightThreshold;
|
|
||||||
type = ImageType::e2D;
|
type = ImageType::e2D;
|
||||||
switch (zt_size.dim_control) {
|
if (zt_size.dim_control == Maxwell3D::Regs::ZetaSize::DimensionControl::DefineArraySize) {
|
||||||
case Maxwell3D::Regs::ZetaSize::DimensionControl::DefineArraySize:
|
|
||||||
resources.layers = zt_size.depth;
|
resources.layers = zt_size.depth;
|
||||||
break;
|
downscaleable = size.height > DownscaleHeightThreshold;
|
||||||
case Maxwell3D::Regs::ZetaSize::DimensionControl::ArraySizeIsOne:
|
} else if (zt_size.dim_control ==
|
||||||
|
Maxwell3D::Regs::ZetaSize::DimensionControl::ArraySizeIsOne) {
|
||||||
resources.layers = 1;
|
resources.layers = 1;
|
||||||
break;
|
downscaleable = size.height > DownscaleHeightThreshold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue