summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Wollnashorn2023-06-15 20:59:33 +0200
committerGravatar Wollnashorn2023-06-15 20:59:33 +0200
commit745d16132b9662de5b8317bfba37fe89c11cea45 (patch)
treeb426ca0f0ae9850278090c806b5ef6c44dfaa0c4
parentvideo_core: Fixed compilation errors because of name shadowing (diff)
downloadyuzu-745d16132b9662de5b8317bfba37fe89c11cea45.tar.gz
yuzu-745d16132b9662de5b8317bfba37fe89c11cea45.tar.xz
yuzu-745d16132b9662de5b8317bfba37fe89c11cea45.zip
video_core: Disable AF for non-color image formats
-rw-r--r--src/video_core/texture_cache/image_view_base.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/image_view_base.cpp b/src/video_core/texture_cache/image_view_base.cpp
index 26fa6d63e..5ebe9b9bb 100644
--- a/src/video_core/texture_cache/image_view_base.cpp
+++ b/src/video_core/texture_cache/image_view_base.cpp
@@ -77,6 +77,15 @@ bool ImageViewBase::SupportsAnisotropy() const noexcept {
77 case PixelFormat::R32_UINT: 77 case PixelFormat::R32_UINT:
78 case PixelFormat::R32_SINT: 78 case PixelFormat::R32_SINT:
79 case PixelFormat::G4R4_UNORM: 79 case PixelFormat::G4R4_UNORM:
80 // Depth formats
81 case PixelFormat::D32_FLOAT:
82 case PixelFormat::D16_UNORM:
83 // Stencil formats
84 case PixelFormat::S8_UINT:
85 // DepthStencil formats
86 case PixelFormat::D24_UNORM_S8_UINT:
87 case PixelFormat::S8_UINT_D24_UNORM:
88 case PixelFormat::D32_FLOAT_S8_UINT:
80 return false; 89 return false;
81 default: 90 default:
82 break; 91 break;