Second threshold for the specific case, works.
This commit is contained in:
parent
2c0b135133
commit
6b4a5bb203
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@ using VideoCore::Surface::SurfaceType;
|
||||||
|
|
||||||
constexpr u32 RescaleHeightThreshold = 288;
|
constexpr u32 RescaleHeightThreshold = 288;
|
||||||
constexpr u32 DownscaleHeightThreshold = 128;
|
constexpr u32 DownscaleHeightThreshold = 128;
|
||||||
|
constexpr u32 DownscaleHeightThresholdTwo = 1024;
|
||||||
|
|
||||||
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();
|
||||||
|
@ -197,7 +198,7 @@ ImageInfo::ImageInfo(const Maxwell3D::Regs::Zeta& zt, const Maxwell3D::Regs::Zet
|
||||||
if (zt_size.dim_control == Maxwell3D::Regs::ZetaSize::DimensionControl::DefineArraySize) {
|
if (zt_size.dim_control == Maxwell3D::Regs::ZetaSize::DimensionControl::DefineArraySize) {
|
||||||
resources.layers = zt_size.depth;
|
resources.layers = zt_size.depth;
|
||||||
// TODO: Problematic downscaling here, check if it is possible add more "filters" for avoid bugs.
|
// TODO: Problematic downscaling here, check if it is possible add more "filters" for avoid bugs.
|
||||||
// downscaleable = size.height > DownscaleHeightThreshold;
|
downscaleable = size.height > DownscaleHeightThresholdTwo;
|
||||||
} else if (zt_size.dim_control ==
|
} else if (zt_size.dim_control ==
|
||||||
Maxwell3D::Regs::ZetaSize::DimensionControl::ArraySizeIsOne) {
|
Maxwell3D::Regs::ZetaSize::DimensionControl::ArraySizeIsOne) {
|
||||||
resources.layers = 1;
|
resources.layers = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue