From 53008eb34a725d6c46483c525f7e28be3301ee67 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 30 Nov 2024 14:03:16 +1000 Subject: [PATCH] GPU/HW: Allow use of RGB5A1 for texture cache Reduces bandwidth and storage requirements by 50%. --- src/core/gpu_hw_texture_cache.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/gpu_hw_texture_cache.cpp b/src/core/gpu_hw_texture_cache.cpp index 389e3c443..b37cad53b 100644 --- a/src/core/gpu_hw_texture_cache.cpp +++ b/src/core/gpu_hw_texture_cache.cpp @@ -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()