radv: simplify a check in radv_initialise_color_surface()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 6 Apr 2018 14:02:16 +0000 (16:02 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 9 Apr 2018 09:21:16 +0000 (11:21 +0200)
commit2692736cee84931ca9b50faaa02529f4b78fe312
tree15f85a4e285fcbc40127fa9c2bbb9c5e5f40e373
parented41e776d03d27d2874f9b02e00bbd1f2226528f
radv: simplify a check in radv_initialise_color_surface()

If the image has FMASK metadata, the number of samples is > 1
because radv_image_can_enable_fmask() handles that already.

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