freedreno/a6xx: Fix color_cache_size

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31534>
This commit is contained in:
Rob Clark
2024-10-14 09:41:25 -07:00
committed by Marge Bot
parent 3a0b022136
commit 65df706b21
@@ -154,8 +154,7 @@ fd6_screen_init(struct pipe_screen *pscreen)
uint32_t depth_cache_size =
screen->info->num_ccu * screen->info->a6xx.sysmem_per_ccu_depth_cache_size;
uint32_t color_cache_size =
(screen->info->num_ccu * screen->info->a6xx.sysmem_per_ccu_color_cache_size) /
(1 << screen->info->a6xx.gmem_ccu_color_cache_fraction);
(screen->info->num_ccu * screen->info->a6xx.sysmem_per_ccu_color_cache_size);
uint32_t color_cache_size_gmem =
color_cache_size /
(1 << screen->info->a6xx.gmem_ccu_color_cache_fraction);