Skip to content

Commit

Permalink
Vulkan: Forgot to enable our various depth rounding features.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Nov 16, 2017
1 parent a56d6f2 commit 23b795e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions GPU/Vulkan/GPU_Vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,17 @@ void GPU_Vulkan::CheckGPUFeatures() {
features |= GPU_USE_CLEAR_RAM_HACK;
}

if (!g_Config.bHighQualityDepth && (features & GPU_SUPPORTS_ACCURATE_DEPTH) != 0) {
features |= GPU_SCALE_DEPTH_FROM_24BIT_TO_16BIT;
}
else if (PSP_CoreParameter().compat.flags().PixelDepthRounding) {
// Use fragment rounding on desktop and GLES3, most accurate.
features |= GPU_ROUND_FRAGMENT_DEPTH_TO_16BIT;
}
else if (PSP_CoreParameter().compat.flags().VertexDepthRounding) {
features |= GPU_ROUND_DEPTH_TO_16BIT;
}

// Mandatory features on Vulkan, which may be checked in "centralized" code
features |= GPU_SUPPORTS_ACCURATE_DEPTH;
features |= GPU_SUPPORTS_TEXTURE_LOD_CONTROL;
Expand Down

0 comments on commit 23b795e

Please sign in to comment.