aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-29 15:56:45 -0400
committerTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-29 20:49:48 -0400
commitd327881c44ada520d6ea939af59bdd420906b99f (patch)
treea7dcb3b06579cce4d3bb51780b69043842413dd7 /src/video_core/texture_cache
parent72fc31f44b954f8e0ebf1a36c2c8565eec83be3a (diff)
build: fixes for clang-cl
- (std::min)/(std::max) where windows.h's macros are visible - LAMBDA_FORCEINLINE: always_inline under clang (clang-cl defines _MSC_VER but rejects [[msvc::forceinline]] on lambdas) - ImageBase::FindView: find_if, as MSVC's STL takes its vectorized find for ImageViewInfo under clang-cl and fails a size assertion - parentheses for -Wlogical-op-parentheses in the Ampere lowering
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/image_base.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/image_base.cpp b/src/video_core/texture_cache/image_base.cpp
index 9b0f33220d..8db081debd 100644
--- a/src/video_core/texture_cache/image_base.cpp
+++ b/src/video_core/texture_cache/image_base.cpp
@@ -109,7 +109,9 @@ std::optional<SubresourceBase> ImageBase::TryFindBase(GPUVAddr other_addr) const
}
ImageViewId ImageBase::FindView(const ImageViewInfo& view_info) const noexcept {
- const auto it = std::ranges::find(image_view_infos, view_info);
+ const auto it = std::ranges::find_if(image_view_infos, [&view_info](const ImageViewInfo& info) {
+ return info == view_info;
+ });
if (it == image_view_infos.end()) {
return ImageViewId{};
}