[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:
parent
5d3240d492
commit
eeb96f91a5
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue