radeonsi: don't use fast color clear for small images even on APUs
authorMarek Olšák <marek.olsak@amd.com>
Tue, 12 Dec 2017 23:40:19 +0000 (00:40 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 25 Dec 2017 13:23:18 +0000 (14:23 +0100)
commitf9cd6c502e1eea27f4a7904dfd75a6a0a23cb41b
treef4cdc747d21f24ff2839ba9328d9f9b16be38010
parentafdcf0f6b2d4ba94d4a176225023625c1847a241
radeonsi: don't use fast color clear for small images even on APUs

Increase the limit and handle non-square images better.

This makes glxgears 20% faster on APUs, and a little more on dGPUs.
We all use and love glxgears.

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/radeonsi/si_clear.c