radv: do not allocate CMASK or DCC for small surfaces
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Nov 2017 13:48:32 +0000 (14:48 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 30 Nov 2017 20:38:30 +0000 (21:38 +0100)
commitff0f17da1446e7aa965e06c04a6ad5a55d95463d
tree9f55df269d62229335b9a5353e982006b0aae192
parentf5955c6bf869e323373c59c2687b463b7e16bdf4
radv: do not allocate CMASK or DCC for small surfaces

The idea is ported from RadeonSI, but using 512x512 instead of
256x256 seems slightly better. This improves dota2 performance
by +2%.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/amd/vulkan/radv_image.c