|
|
@ -1330,6 +1330,13 @@ void RasterizerVulkan::UpdateDepthBias(Tegra::Engines::Maxwell3D::Regs& regs) { |
|
|
regs.zeta.format == Tegra::DepthFormat::S8Z24_UNORM || |
|
|
regs.zeta.format == Tegra::DepthFormat::S8Z24_UNORM || |
|
|
regs.zeta.format == Tegra::DepthFormat::V8Z24_UNORM; |
|
|
regs.zeta.format == Tegra::DepthFormat::V8Z24_UNORM; |
|
|
|
|
|
|
|
|
|
|
|
const bool is_float_depth = regs.zeta.format == Tegra::DepthFormat::Z32_FLOAT || |
|
|
|
|
|
regs.zeta.format == Tegra::DepthFormat::Z32_FLOAT_X24S8_UINT; |
|
|
|
|
|
|
|
|
|
|
|
if (is_float_depth && !device.IsExtDepthBiasControlSupported()) { |
|
|
|
|
|
units /= static_cast<float>(1ULL << (32 - 24)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (is_d24 && !device.SupportsD24DepthBuffer()) { |
|
|
if (is_d24 && !device.SupportsD24DepthBuffer()) { |
|
|
static constexpr const size_t length = sizeof(NEEDS_D24) / sizeof(NEEDS_D24[0]); |
|
|
static constexpr const size_t length = sizeof(NEEDS_D24) / sizeof(NEEDS_D24[0]); |
|
|
|
|
|
|
|
|
|