diff options
| author | TellowKrinkle <tellowkrinkle@gmail.com> | 2023-05-17 20:15:33 -0500 |
|---|---|---|
| committer | TellowKrinkle <tellowkrinkle@gmail.com> | 2024-01-28 23:24:22 -0600 |
| commit | 99f0c3fa01e7efe5cabf65f634b6b7df4eca27b0 (patch) | |
| tree | 0bdbf96dcbf96221f3b2e264a85fc7d488f511bb /Source/Core/VideoCommon/DriverDetails.cpp | |
| parent | 463269f704954d71ed4110fe4357f9249ac6ccab (diff) | |
VideoCommon: Add ability for backends to override bugs
Diffstat (limited to 'Source/Core/VideoCommon/DriverDetails.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/DriverDetails.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/DriverDetails.cpp b/Source/Core/VideoCommon/DriverDetails.cpp index 351a673414..14594a489c 100644 --- a/Source/Core/VideoCommon/DriverDetails.cpp +++ b/Source/Core/VideoCommon/DriverDetails.cpp @@ -217,4 +217,15 @@ bool HasBug(Bug bug) return false; return it->second.m_hasbug; } + +void OverrideBug(Bug bug, bool new_value) +{ + const auto [it, added] = m_bugs.try_emplace( + bug, BugInfo{m_api, m_os, m_vendor, m_driver, m_family, bug, -1, -1, false}); + if (it->second.m_hasbug != new_value) + { + // TODO: Report to DolphinAnalytics? + it->second.m_hasbug = new_value; + } +} } // namespace DriverDetails |
