mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
ac: compute the size of one DCC slice on GFX8
Addrlib doesn't provide this info. Because DCC is linear, at least on GFX8, it's easy to compute the size of one slice. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
457a55716e
commit
6517d226ac
2 changed files with 7 additions and 0 deletions
|
|
@ -302,6 +302,12 @@ static int gfx6_compute_level(ADDR_HANDLE addrlib,
|
|||
surf_level->dcc_fast_clear_size = AddrDccOut->dccFastClearSize;
|
||||
else
|
||||
surf_level->dcc_fast_clear_size = 0;
|
||||
|
||||
/* Compute the DCC slice size because addrlib doesn't
|
||||
* provide this info. As DCC memory is linear (each
|
||||
* slice is the same size) it's easy to compute.
|
||||
*/
|
||||
surf->dcc_slice_size = AddrDccOut->dccRamSize / config->info.array_size;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -212,6 +212,7 @@ struct radeon_surf {
|
|||
|
||||
/* DCC and HTILE are very small. */
|
||||
uint32_t dcc_size;
|
||||
uint32_t dcc_slice_size;
|
||||
uint32_t dcc_alignment;
|
||||
|
||||
uint32_t htile_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue