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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user