[GPU] Reset mip levels for non-mipmapped type

This prevent issue where fetch is partially invalid and contains invalid mip_page and mip_level for BaseMap type
This commit is contained in:
Radosław Gliński 2024-07-15 22:56:53 +02:00 committed by GitHub
parent 5d3240d492
commit eeb96f91a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -69,9 +69,7 @@ void GetSubresourcesFromFetchConstant(
uint32_t mip_page = fetch.mip_address & 0x1FFFF; uint32_t mip_page = fetch.mip_address & 0x1FFFF;
uint32_t mip_min_level, mip_max_level; uint32_t mip_min_level, mip_max_level;
// Not taking mip_filter == kBaseMap into account for mip_max_level because if (fetch.mip_filter == xenos::TextureFilter::kBaseMap || mip_page == 0) {
// the mip filter may be overridden by shader fetch instructions.
if (mip_page == 0) {
mip_min_level = 0; mip_min_level = 0;
mip_max_level = 0; mip_max_level = 0;
} else { } else {