Skip to content

Commit

Permalink
Disable the DisableAccurateDepth compat flag on AMD/Vulkan, see #9545.…
Browse files Browse the repository at this point in the history
… Ugh.
  • Loading branch information
hrydgard committed Nov 21, 2017
1 parent f7184c1 commit 4628334
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GPU/Vulkan/GPU_Vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,12 @@ GPU_Vulkan::~GPU_Vulkan() {
void GPU_Vulkan::CheckGPUFeatures() {
uint32_t features = 0;

// Mandatory features on Vulkan, which may be checked in "centralized" code
if (!PSP_CoreParameter().compat.flags().DisableAccurateDepth) {
// Accurate depth is required on AMD so we ignore the compat flag to disable it on those.
if (!PSP_CoreParameter().compat.flags().DisableAccurateDepth || vulkan_->GetPhysicalDeviceProperties().vendorID == VULKAN_VENDOR_AMD) {
features |= GPU_SUPPORTS_ACCURATE_DEPTH;
}

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

0 comments on commit 4628334

Please sign in to comment.