mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-12 08:00:36 +01:00
Another check
This commit is contained in:
parent
883cdead8b
commit
2addf1556e
1 changed files with 6 additions and 0 deletions
|
|
@ -1292,6 +1292,12 @@ void RasterizerVulkan::UpdateDepthBias(Tegra::Engines::Maxwell3D::Regs& regs) {
|
||||||
regs.zeta.format == Tegra::DepthFormat::X8Z24_UNORM ||
|
regs.zeta.format == Tegra::DepthFormat::X8Z24_UNORM ||
|
||||||
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_zeta = regs.zeta.format == Tegra::DepthFormat::Z32_FLOAT ||
|
||||||
|
regs.zeta.format == Tegra::DepthFormat::Z32_FLOAT_X24S8_UINT;
|
||||||
|
|
||||||
|
if (is_float_zeta && !device.IsExtDepthBiasControlSupported()) {
|
||||||
|
units *= 256.0f;
|
||||||
|
}
|
||||||
|
|
||||||
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]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue