Vulkan: Use reversed depth range in viewport

Also adds a DriverDetails bug to disable on drivers where this is still
broken.
This commit is contained in:
Stenzek
2019-07-15 19:45:36 +10:00
parent a77b571da7
commit 68bd4cd79a
3 changed files with 16 additions and 3 deletions

View File

@ -108,7 +108,10 @@ constexpr BugInfo m_known_bugs[] = {
BUG_BROKEN_CLEAR_LOADOP_RENDERPASS, -1.0, -1.0, true},
{API_VULKAN, OS_ALL, VENDOR_QUALCOMM, DRIVER_QUALCOMM, Family::UNKNOWN, BUG_BROKEN_D32F_CLEAR,
-1.0, -1.0, true},
};
{API_VULKAN, OS_ALL, VENDOR_MESA, DRIVER_I965, Family::UNKNOWN, BUG_BROKEN_REVERSED_DEPTH_RANGE,
-1.0, -1.0, true},
{API_VULKAN, OS_ALL, VENDOR_QUALCOMM, DRIVER_QUALCOMM, Family::UNKNOWN,
BUG_BROKEN_REVERSED_DEPTH_RANGE, -1.0, -1.0, true}};
static std::map<Bug, BugInfo> m_bugs;

View File

@ -276,6 +276,11 @@ enum Bug
// Started version: -1
// Ended version: -1
BUG_BROKEN_D32F_CLEAR,
// BUG: Reversed viewport depth range does not work as intended on some Vulkan drivers.
// The Vulkan spec allows the minDepth/maxDepth fields in the viewport to be reversed,
// however the implementation is broken on some drivers.
BUG_BROKEN_REVERSED_DEPTH_RANGE,
};
// Initializes our internal vendor, device family, and driver version