radeonsi: fix CMASK and HTILE calculations for Hawaii
authorMarek Olšák <marek.olsak@amd.com>
Fri, 25 Jul 2014 22:48:48 +0000 (00:48 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 28 Jul 2014 21:57:08 +0000 (23:57 +0200)
commit9b046474c95f15338d4c748df9b62871bba6f36f
treebab9187ca0708787adacf908b30b68dfeb4ff7fe
parentecbd3a545a3cb5f2c112ae0b02abfcbb3240ec6f
radeonsi: fix CMASK and HTILE calculations for Hawaii

This fixes the checkerboard pattern in glxgears and anything that triggers
fast color clear.

num_channels is always <= 8, but Hawaii has 16 pipes.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeon/r600_texture.c