Variable names ok
This commit is contained in:
parent
5d80c672c8
commit
9bb4c6ebe4
1 changed files with 8 additions and 8 deletions
|
@ -23,8 +23,8 @@ using VideoCore::Surface::PixelFormat;
|
||||||
using VideoCore::Surface::SurfaceType;
|
using VideoCore::Surface::SurfaceType;
|
||||||
|
|
||||||
constexpr u32 RescaleHeightThreshold = 288;
|
constexpr u32 RescaleHeightThreshold = 288;
|
||||||
constexpr u32 DownscaleHeightThreshold = 128;
|
constexpr u32 DownscaleHeightThresholdNormal = 128;
|
||||||
constexpr u32 DownscaleHeightThresholdTwo = 1024;
|
constexpr u32 DownscaleHeightThresholdArray = 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();
|
||||||
|
@ -120,7 +120,7 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept {
|
||||||
rescaleable &= (block.depth == 0) && resources.levels == 1;
|
rescaleable &= (block.depth == 0) && resources.levels == 1;
|
||||||
rescaleable &= size.height > RescaleHeightThreshold ||
|
rescaleable &= size.height > RescaleHeightThreshold ||
|
||||||
GetFormatType(format) != SurfaceType::ColorTexture;
|
GetFormatType(format) != SurfaceType::ColorTexture;
|
||||||
downscaleable = size.height > DownscaleHeightThreshold;
|
downscaleable = size.height > DownscaleHeightThresholdNormal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ ImageInfo::ImageInfo(const Maxwell3D::Regs::RenderTargetConfig& ct,
|
||||||
size.depth = ct.depth;
|
size.depth = ct.depth;
|
||||||
} else {
|
} else {
|
||||||
rescaleable = block.depth == 0 && size.height > RescaleHeightThreshold;
|
rescaleable = block.depth == 0 && size.height > RescaleHeightThreshold;
|
||||||
downscaleable = size.height > DownscaleHeightThreshold;
|
downscaleable = size.height > DownscaleHeightThresholdNormal;
|
||||||
type = ImageType::e2D;
|
type = ImageType::e2D;
|
||||||
resources.layers = ct.depth;
|
resources.layers = ct.depth;
|
||||||
}
|
}
|
||||||
|
@ -199,11 +199,11 @@ ImageInfo::ImageInfo(const Maxwell3D::Regs::Zeta& zt, const Maxwell3D::Regs::Zet
|
||||||
resources.layers = zt_size.depth;
|
resources.layers = zt_size.depth;
|
||||||
// TODO: Problematic downscaling here, check if it is possible add more "filters" for
|
// TODO: Problematic downscaling here, check if it is possible add more "filters" for
|
||||||
// avoid bugs.
|
// avoid bugs.
|
||||||
downscaleable = size.height > DownscaleHeightThresholdTwo;
|
downscaleable = size.height > DownscaleHeightThresholdArray;
|
||||||
} 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;
|
||||||
downscaleable = size.height > DownscaleHeightThreshold;
|
downscaleable = size.height > DownscaleHeightThresholdNormal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -239,7 +239,7 @@ ImageInfo::ImageInfo(const Fermi2D::Surface& config) noexcept {
|
||||||
.depth = 1,
|
.depth = 1,
|
||||||
};
|
};
|
||||||
rescaleable = block.depth == 0 && size.height > RescaleHeightThreshold;
|
rescaleable = block.depth == 0 && size.height > RescaleHeightThreshold;
|
||||||
downscaleable = size.height > DownscaleHeightThreshold;
|
downscaleable = size.height > DownscaleHeightThresholdNormal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -282,7 +282,7 @@ ImageInfo::ImageInfo(const Tegra::DMA::ImageOperand& 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 && size.height > RescaleHeightThreshold;
|
rescaleable = block.depth == 0 && size.height > RescaleHeightThreshold;
|
||||||
downscaleable = size.height > DownscaleHeightThreshold;
|
downscaleable = size.height > DownscaleHeightThresholdNormal;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace VideoCommon
|
} // namespace VideoCommon
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue