gallium/radeon: don't allocate DCC for non-renderable texture formats
authorMarek Olšák <marek.olsak@amd.com>
Sun, 5 Jun 2016 23:29:14 +0000 (01:29 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 7 Jun 2016 22:22:45 +0000 (00:22 +0200)
commitd4d733e39de2fc75aaa17d95998abdf19219cb38
tree3eb8b74370b9e5e9a8c642bf41f1f0c4eb9fea58
parentb42bc90b6add0d0f81d915d49712761d32329afa
gallium/radeon: don't allocate DCC for non-renderable texture formats

R9G9B9E5 is the only uncompressed one hopefully.

This fixes incorrect rendering not discovered (due to a lack of tests)
until DCC mipmapping was enabled.

Cc: 11.1 11.2 12.0 <mesa-stable@lists.freedesktop.org>
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