radv: disable prediction only if it has been enabled
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 13 Apr 2018 17:14:43 +0000 (19:14 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 16 Apr 2018 12:20:39 +0000 (14:20 +0200)
commit79c87a45b69e6f94ebe42ffcd59267ec3d9c99ca
treed44f07748d7a754e9e813c4303357bec7f670ca6
parentb0e3a9b19f16ed1ce4c1f150718b0c0f0e6111f6
radv: disable prediction only if it has been enabled

When decompressing DCC we don't enable it, so it's useless
to disable it. This reduces the number of prediction packets
sent to the GPU when performing color decompression passes.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Niuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_fast_clear.c