mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Disable anisotropic filtering for all flat draws.
May improve performance slightly, and should fix the last instances of #19555
This commit is contained in:
1 parent
644f1b6caf
commit
2534eb4480
17 files changed
+51
-43
No files matched your search
@@ -632,14 +632,14 @@ void TextureCacheVulkan::UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutB
|
||||
clutLastFormat_ = gstate.clutformat;
|
||||
}
|
||||
|
||||
void TextureCacheVulkan::BindTexture(TexCacheEntry *entry) {
|
||||
void TextureCacheVulkan::BindTexture(TexCacheEntry *entry, bool flatZ) {
|
||||
if (!entry || !entry->vkTex) {
|
||||
Unbind();
|
||||
return;
|
||||
}
|
||||
|
||||
int maxLevel = (entry->status & TexCacheEntry::STATUS_NO_MIPS) ? 0 : entry->maxLevel;
|
||||
SamplerCacheKey samplerKey = GetSamplingParams(maxLevel, entry);
|
||||
SamplerCacheKey samplerKey = GetSamplingParams(maxLevel, entry, flatZ);
|
||||
curSampler_ = samplerCache_.GetOrCreateSampler(samplerKey);
|
||||
imageView_ = entry->vkTex->GetImageView();
|
||||
drawEngine_->SetDepalTexture(VK_NULL_HANDLE, false);
|
||||
@@ -1060,7 +1060,7 @@ bool TextureCacheVulkan::GetCurrentTextureDebug(GPUDebugBuffer &buffer, int leve
|
||||
|
||||
// Apply texture may need to rebuild the texture if we're about to render, or bind a framebuffer.
|
||||
TexCacheEntry *entry = nextTexture_;
|
||||
ApplyTexture();
|
||||
ApplyTexture(true, false);
|
||||
|
||||
if (!entry->vkTex)
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user