Skip to content

Commit

Permalink
GPU/HW: Allow use of RGB5A1 for texture cache
Browse files Browse the repository at this point in the history
Reduces bandwidth and storage requirements by 50%.
  • Loading branch information
stenzek committed Nov 30, 2024
1 parent c6e2235 commit 53008eb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/gpu_hw_texture_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,17 +778,13 @@ 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;
else
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()
Expand Down

0 comments on commit 53008eb

Please sign in to comment.