From 320102db346b7d0b75acbb65f81b3ff4d37307f2 Mon Sep 17 00:00:00 2001 From: Gliniak Date: Sat, 10 Aug 2024 18:15:16 +0200 Subject: [PATCH] Revert "[GPU] Reset mip levels for non-mipmapped type" This reverts commit eeb96f91a5639c241bdb6d1d5f1dfdc31e8b3e48. --- src/xenia/gpu/texture_util.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xenia/gpu/texture_util.cc b/src/xenia/gpu/texture_util.cc index fe7861ca8..09e8c5207 100644 --- a/src/xenia/gpu/texture_util.cc +++ b/src/xenia/gpu/texture_util.cc @@ -69,7 +69,9 @@ void GetSubresourcesFromFetchConstant( uint32_t mip_page = fetch.mip_address & 0x1FFFF; uint32_t mip_min_level, mip_max_level; - if (fetch.mip_filter == xenos::TextureFilter::kBaseMap || mip_page == 0) { + // Not taking mip_filter == kBaseMap into account for mip_max_level because + // the mip filter may be overridden by shader fetch instructions. + if (mip_page == 0) { mip_min_level = 0; mip_max_level = 0; } else {