winsys/amdgpu: enable DCC for mipmapped textures
authorMarek Olšák <marek.olsak@amd.com>
Fri, 3 Jun 2016 18:48:01 +0000 (20:48 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 7 Jun 2016 22:22:45 +0000 (00:22 +0200)
commit00389100b63d03adf70892b721d1b2e8b8d5e48a
tree8d7d025d5fb201d23034dff287a0cd6a5531af03
parentc65361763cca709a28534aa354b6dffe1cbadf99
winsys/amdgpu: enable DCC for mipmapped textures

Also add dcc_fast_clear_size for clearing only the necessary subset
of DCC. For no AA, it's equal to the size of the whole DCC level.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeon/r600_texture.c
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/winsys/amdgpu/drm/amdgpu_surface.c