ac: compute the size of one DCC slice on GFX8
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 1 Jul 2019 14:30:55 +0000 (16:30 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 2 Jul 2019 07:37:41 +0000 (09:37 +0200)
commit6517d226acc8f07db7d730c727758e3a0f1e7cf8
tree0282d8c5a5ac2f9dbbab37bdcc73045a27d67ebb
parent457a55716ea7752616bfadafce705f8a07970b9e
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>
src/amd/common/ac_surface.c
src/amd/common/ac_surface.h