summaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/surface_params.cpp4
-rw-r--r--src/video_core/texture_cache/texture_cache.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/src/video_core/texture_cache/surface_params.cpp b/src/video_core/texture_cache/surface_params.cpp
index 305297719..96f93246d 100644
--- a/src/video_core/texture_cache/surface_params.cpp
+++ b/src/video_core/texture_cache/surface_params.cpp
@@ -398,9 +398,9 @@ std::string SurfaceParams::TargetName() const {
398 case SurfaceTarget::TextureCubeArray: 398 case SurfaceTarget::TextureCubeArray:
399 return "CubeArray"; 399 return "CubeArray";
400 default: 400 default:
401 LOG_CRITICAL(HW_GPU, "Unimplemented surface_target={}", static_cast<u32>(target)); 401 LOG_CRITICAL(HW_GPU, "Unimplemented surface_target={}", target);
402 UNREACHABLE(); 402 UNREACHABLE();
403 return fmt::format("TUK({})", static_cast<u32>(target)); 403 return fmt::format("TUK({})", target);
404 } 404 }
405} 405}
406 406
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index ea835c59f..581d8dd5b 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -1191,9 +1191,8 @@ private:
1191 const SurfaceParams& src_params = src->GetSurfaceParams(); 1191 const SurfaceParams& src_params = src->GetSurfaceParams();
1192 const SurfaceParams& dst_params = dst->GetSurfaceParams(); 1192 const SurfaceParams& dst_params = dst->GetSurfaceParams();
1193 if (!format_compatibility.TestCopy(src_params.pixel_format, dst_params.pixel_format)) { 1193 if (!format_compatibility.TestCopy(src_params.pixel_format, dst_params.pixel_format)) {
1194 LOG_ERROR(HW_GPU, "Illegal copy between formats={{{}, {}}}", 1194 LOG_ERROR(HW_GPU, "Illegal copy between formats={{{}, {}}}", dst_params.pixel_format,
1195 static_cast<int>(dst_params.pixel_format), 1195 src_params.pixel_format);
1196 static_cast<int>(src_params.pixel_format));
1197 return; 1196 return;
1198 } 1197 }
1199 ImageCopy(src, dst, copy); 1198 ImageCopy(src, dst, copy);