mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
tu: Use full size color CCU in sysmem mode
Only a fraction of GMEM was being used by the color CCU even in sysmem mode where it would go unused aside from the portion used by the depth CCU. This can help with color CCU bottlenecks on both A6XX and A7XX. Signed-off-by: Mark Collins <mark@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26461>
This commit is contained in:
parent
40b3a38951
commit
b44474407d
1 changed files with 3 additions and 3 deletions
|
|
@ -265,7 +265,7 @@ emit_rb_ccu_cntl(struct tu_cs *cs, struct tu_device *dev, bool gmem)
|
|||
uint32_t depth_offset_hi = depth_offset >> 21;
|
||||
depth_offset &= 0x1fffff;
|
||||
|
||||
enum a6xx_ccu_cache_size cache_size = !gmem ? CCU_CACHE_SIZE_FULL :
|
||||
enum a6xx_ccu_cache_size color_cache_size = !gmem ? CCU_CACHE_SIZE_FULL : !gmem ? CCU_CACHE_SIZE_FULL :
|
||||
(a6xx_ccu_cache_size)(dev->physical_device->info->a6xx.gmem_ccu_color_cache_fraction);
|
||||
bool concurrent_resolve = dev->physical_device->info->a6xx.concurrent_resolve;
|
||||
|
||||
|
|
@ -280,7 +280,7 @@ emit_rb_ccu_cntl(struct tu_cs *cs, struct tu_device *dev, bool gmem)
|
|||
.color_offset_hi = color_offset_hi,
|
||||
.depth_cache_size = CCU_CACHE_SIZE_FULL,
|
||||
.depth_offset = depth_offset,
|
||||
.color_cache_size = cache_size,
|
||||
.color_cache_size = color_cache_size,
|
||||
.color_offset = color_offset
|
||||
));
|
||||
|
||||
|
|
@ -309,7 +309,7 @@ emit_rb_ccu_cntl(struct tu_cs *cs, struct tu_device *dev, bool gmem)
|
|||
.color_offset_hi = color_offset_hi,
|
||||
.depth_cache_size = CCU_CACHE_SIZE_FULL,
|
||||
.depth_offset = 0,
|
||||
.color_cache_size = cache_size,
|
||||
.color_cache_size = color_cache_size,
|
||||
.color_offset = color_offset
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue