GPU/HW: Allow use of RGB5A1 for texture cache

Reduces bandwidth and storage requirements by 50%.
This commit is contained in:
Stenzek 2024-11-30 14:03:16 +10:00
parent c6e2235ee2
commit 53008eb34a
No known key found for this signature in database
1 changed files with 0 additions and 4 deletions

View File

@ -778,7 +778,6 @@ void GPUTextureCache::Shutdown()
void GPUTextureCache::SetHashCacheTextureFormat()
{
#if 0
// Prefer 16-bit texture formats where possible.
if (g_gpu_device->SupportsTextureFormat(GPUTexture::Format::RGB5A1))
s_state.hash_cache_texture_format = GPUTexture::Format::RGB5A1;
@ -786,9 +785,6 @@ void GPUTextureCache::SetHashCacheTextureFormat()
s_state.hash_cache_texture_format = GPUTexture::Format::RGBA8;
INFO_LOG("Using {} format for hash cache entries.", GPUTexture::GetFormatName(s_state.hash_cache_texture_format));
#else
s_state.hash_cache_texture_format = GPUTexture::Format::RGBA8;
#endif
}
bool GPUTextureCache::CompilePipelines()