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
commitbb2cbdf7047ed765c236e2da0c04420082d7fd8f (patch)
tree7ee16bceea67ccf546f263344d6b72bf157b308d /src/video_core/compatible_formats.cpp
parent1d6be9febf7b9613014ec60fc0ec42e40cc073c9 (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 01e5c26ae..6c426b035 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);
}
}
}