radv: fix DCC enablement since partial MSAA implementation
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 25 Apr 2018 08:56:15 +0000 (10:56 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 26 Apr 2018 13:34:11 +0000 (15:34 +0200)
commita6fbefa67b5b0ed1ee42a9034ee74dfaed1c389a
tree94bd1743ba8d7a71ad6b85b0eee5be505a47244b
parent227b1af866112236e6788396731f2c6b4a050525
radv: fix DCC enablement since partial MSAA implementation

dcc_msaa_allowed is always false on GFX9+ and only true on VI
if RADV_PERFTEST=dccmsaa is set. This means DCC was disabled
in some situations where it should not.

This is likely going to fix a performance regression.

Fixes: 2f63b3dd09 ("radv: enable DCC for MSAA 2x textures on VI under an option")
Cc: 18.1 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_image.c