radv: fix wmaybe-uninitialized in radv_meta_fast_clear.c
authorAndres Rodriguez <andresx7@gmail.com>
Wed, 18 Jul 2018 18:18:57 +0000 (14:18 -0400)
committerAndres Rodriguez <andresx7@gmail.com>
Wed, 18 Jul 2018 19:32:51 +0000 (15:32 -0400)
commitd3d9513556068093b902bff3bdd55eb0e4bccfe2
tree08034f29de6c7bd08f89a3293a04ec224cf6b878
parent4bf723406105d60024cb54342ae84d1913938226
radv: fix wmaybe-uninitialized in radv_meta_fast_clear.c

Assignment and usage of this variable both happen inside an
if(rad_image_has_dcc()) {} blocks. It seems gcc plays it safe and
assumes that both function calls could have different return values.

But in this case we should be safe.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_meta_fast_clear.c