mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Vulkan: Only force 32-bit if needed.
If there are mips already, we can keep 16-bit.
This commit is contained in:
parent
d9f62d690a
commit
c37c078254
1 changed files with 4 additions and 2 deletions
|
@ -757,8 +757,10 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) {
|
|||
if (g_Config.iTexFiltering == TEX_FILTER_AUTO_MAX_QUALITY) {
|
||||
// Boost the number of mipmaps.
|
||||
int maxPossibleMipmaps = log2i(std::min(gstate.getTextureWidth(0), gstate.getTextureHeight(0)));
|
||||
maxLevelToGenerate = maxPossibleMipmaps;
|
||||
dstFmt = VK_FORMAT_R8G8B8A8_UNORM;
|
||||
if (maxPossibleMipmaps > maxLevelToGenerate) {
|
||||
maxLevelToGenerate = maxPossibleMipmaps;
|
||||
dstFmt = VK_FORMAT_R8G8B8A8_UNORM;
|
||||
}
|
||||
}
|
||||
|
||||
int scaleFactor = standardScaleFactor_;
|
||||
|
|
Loading…
Add table
Reference in a new issue