Add support compat to fake mipmap hacks.

This commit is contained in:
xebra committed 2017-02-15 01:02:51 +09:00
1 parent 7975addad0
commit e2f9dc8f28
7 files changed
+28 -12

No files matched your search

+2 -2
View File
@@ -624,7 +624,7 @@ void TextureCacheVulkan::SetTexture() {
#endif
u8 level = 0;
if (gstate.getTexLevelMode() == GE_TEXLEVEL_MODE_CONST)
if (IsFakeMipmapChange())
level = (gstate.texlevel >> 20) & 0xF;
u32 texaddr = gstate.getTextureAddress(level);
if (!Memory::IsValidAddress(texaddr)) {
@@ -1086,7 +1086,7 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry, VulkanPushBuff
if (entry->vkTex) {
u8 level = (gstate.texlevel >> 20) & 0xF;
bool fakeMipmap = gstate.getTexLevelMode() == GE_TEXLEVEL_MODE_CONST && level > 0;
bool fakeMipmap = IsFakeMipmapChange() && level > 0;
// Upload the texture data.
for (int i = 0; i <= maxLevel; i++) {
int mipWidth = gstate.getTextureWidth(i) * scaleFactor;