diff options
author | Lioncash <mathew1800@gmail.com> | 2020-12-07 06:41:47 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-12-07 06:41:50 +0100 |
commit | 4c5f5c9bf301d3626df104dbed6fed6f115cedc8 (patch) | |
tree | 968245c43735e546fff2a8c7dcecfe653dee33fd /src/video_core/texture_cache | |
parent | Merge pull request #5147 from comex/xx-purevirt (diff) | |
download | yuzu-4c5f5c9bf301d3626df104dbed6fed6f115cedc8.tar yuzu-4c5f5c9bf301d3626df104dbed6fed6f115cedc8.tar.gz yuzu-4c5f5c9bf301d3626df104dbed6fed6f115cedc8.tar.bz2 yuzu-4c5f5c9bf301d3626df104dbed6fed6f115cedc8.tar.lz yuzu-4c5f5c9bf301d3626df104dbed6fed6f115cedc8.tar.xz yuzu-4c5f5c9bf301d3626df104dbed6fed6f115cedc8.tar.zst yuzu-4c5f5c9bf301d3626df104dbed6fed6f115cedc8.zip |
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r-- | src/video_core/texture_cache/surface_params.cpp | 4 | ||||
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 5 |
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 { case SurfaceTarget::TextureCubeArray: return "CubeArray"; default: - LOG_CRITICAL(HW_GPU, "Unimplemented surface_target={}", static_cast<u32>(target)); + LOG_CRITICAL(HW_GPU, "Unimplemented surface_target={}", target); UNREACHABLE(); - return fmt::format("TUK({})", static_cast<u32>(target)); + return fmt::format("TUK({})", target); } } 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: const SurfaceParams& src_params = src->GetSurfaceParams(); const SurfaceParams& dst_params = dst->GetSurfaceParams(); if (!format_compatibility.TestCopy(src_params.pixel_format, dst_params.pixel_format)) { - LOG_ERROR(HW_GPU, "Illegal copy between formats={{{}, {}}}", - static_cast<int>(dst_params.pixel_format), - static_cast<int>(src_params.pixel_format)); + LOG_ERROR(HW_GPU, "Illegal copy between formats={{{}, {}}}", dst_params.pixel_format, + src_params.pixel_format); return; } ImageCopy(src, dst, copy); |