From 1fdf15a1be499c308a2e3c7af96d09824638dc3e Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Tue, 15 Nov 2022 16:04:07 -0800 Subject: VideoCommon/FramebufferManager: Rename m_efb_cache_tiles_wide to m_efb_cache_tile_row_stride This also initializes it in the non-tiled case just for consistency, although it's not actually read in that case. --- Source/Core/VideoCommon/FramebufferManager.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/FramebufferManager.h') diff --git a/Source/Core/VideoCommon/FramebufferManager.h b/Source/Core/VideoCommon/FramebufferManager.h index 16c7f18d3c..dd073dda12 100644 --- a/Source/Core/VideoCommon/FramebufferManager.h +++ b/Source/Core/VideoCommon/FramebufferManager.h @@ -191,9 +191,14 @@ protected: // Format conversion shaders std::array, 6> m_format_conversion_pipelines; - // EFB cache - for CPU EFB access + // EFB cache - for CPU EFB access (EFB peeks/pokes), not for EFB copies + + // Width and height of a tile in pixels at 1x IR. 0 indicates non-tiled, in which case a single + // tile is used for the entire EFB. + // Note that as EFB peeks and pokes are a CPU feature, they always operate at 1x IR. u32 m_efb_cache_tile_size = 0; - u32 m_efb_cache_tiles_wide = 0; + // Number of tiles that make up a row in m_efb_color_cache.tiles / m_efb_depth_cache.tiles. + u32 m_efb_cache_tile_row_stride = 1; EFBCacheData m_efb_color_cache = {}; EFBCacheData m_efb_depth_cache = {}; -- cgit v1.2.3