aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/compatible_formats.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-26 19:25:49 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-06-26 20:52:22 -0300
commit26144f794f6a3f10bb66ff1e7cd647ab05354e8d (patch)
tree7ee16bceea67ccf546f263344d6b72bf157b308d /src/video_core/compatible_formats.cpp
parent23e0009a41d10cea363354048e279ea216ceb429 (diff)
texture_cache: Test format compatibility before copying
Avoid illegal copies. This intercepts the last step of a copy to avoid generating validation errors or corrupting the driver on some instances. We can create views and emit copies accordingly in future commits and remove this last-step validation.
Diffstat (limited to 'src/video_core/compatible_formats.cpp')
-rw-r--r--src/video_core/compatible_formats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/compatible_formats.cpp b/src/video_core/compatible_formats.cpp
index 01e5c26ae0..6c426b0357 100644
--- a/src/video_core/compatible_formats.cpp
+++ b/src/video_core/compatible_formats.cpp
@@ -130,7 +130,7 @@ template <typename Range>
void EnableRange(FormatCompatibility::Table& compatibility, const Range& range) {
for (auto it_a = range.begin(); it_a != range.end(); ++it_a) {
for (auto it_b = it_a; it_b != range.end(); ++it_b) {
- Enable(*it_a, *it_b);
+ Enable(compatibility, *it_a, *it_b);
}
}
}