summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-01-26 10:55:10 +0100
committerdegasus <wickmarkus@web.de>2014-01-26 11:00:29 +0100
commitd3fd0eddbbe423edddc1abb6489ccc7369c8b892 (patch)
tree3861056be68178446eb845c420ad4307b21e6fae /Source/Core/VideoCommon
parent6f74f594276393df4626cf7149ab42a3105da068 (diff)
OSX: don't avoid unsync mapping on nvida gpus just because the windows driver doesn't like it
OSX has their own driver, so performance issues aren't shared with the nvidia driver (unlike the closed source linux and windows nvidia driver). So now they'll also use the MapAndSync backend like all other osx drivers. fixes issue 6596 I've also cleaned up the if/else block selecting the best backend a bit.
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/DriverDetails.cpp2
-rw-r--r--Source/Core/VideoCommon/DriverDetails.h11
2 files changed, 13 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/DriverDetails.cpp b/Source/Core/VideoCommon/DriverDetails.cpp
index 3f90b2f4af..37b5c3cb3b 100644
--- a/Source/Core/VideoCommon/DriverDetails.cpp
+++ b/Source/Core/VideoCommon/DriverDetails.cpp
@@ -55,6 +55,8 @@ namespace DriverDetails
{OS_WINDOWS,VENDOR_NVIDIA, DRIVER_NVIDIA, -1, BUG_BROKENBUFFERSTORAGE, -1.0, 33220.0, true},
{OS_LINUX, VENDOR_NVIDIA, DRIVER_NVIDIA, -1, BUG_BROKENBUFFERSTORAGE, -1.0, 33138.0, true},
{OS_OSX, VENDOR_INTEL, DRIVER_INTEL, 3000, BUG_PRIMITIVERESTART, -1.0, -1.0, true},
+ {OS_WINDOWS,VENDOR_NVIDIA, DRIVER_NVIDIA, -1, BUG_BROKENUNSYNCMAPPING, -1.0, -1.0, true},
+ {OS_LINUX, VENDOR_NVIDIA, DRIVER_NVIDIA, -1, BUG_BROKENUNSYNCMAPPING, -1.0, -1.0, true},
};
std::map<Bug, BugInfo> m_bugs;
diff --git a/Source/Core/VideoCommon/DriverDetails.h b/Source/Core/VideoCommon/DriverDetails.h
index 384e372fb3..68c31cc932 100644
--- a/Source/Core/VideoCommon/DriverDetails.h
+++ b/Source/Core/VideoCommon/DriverDetails.h
@@ -154,6 +154,17 @@ namespace DriverDetails
// The drivers on OS X has broken primitive restart.
// Intel HD 4000 series isn't affected by the bug
BUG_PRIMITIVERESTART,
+ // Bug: unsync mapping doesn't work fine
+ // Affected devices: nvidia driver
+ // Started Version: -1
+ // Ended Version: -1
+ // The nvidia driver (both windows + linux) doesn't like unsync mapping performance wise.
+ // Because of their threaded behavoir, they seem not to handle unsync mapping complete unsync,
+ // in fact, they serialize the driver which adds a much bigger overhead.
+ // Workaround: Use BufferSubData
+ // TODO: some windows AMD driver/gpu combination seems also affected
+ // but as they all support pinned memory, it doesn't matter
+ BUG_BROKENUNSYNCMAPPING,
};
// Initializes our internal vendor, device family, and driver version