radv: set ac_surf_info::num_channels correctly
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 25 Apr 2018 09:22:17 +0000 (11:22 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 26 Apr 2018 13:34:14 +0000 (15:34 +0200)
commitd7ffe3b384f4d1c15a9364768cf405d416522e60
treea60c74e8566a9b9c2106d5cfacb69722f6f9d5bc
parenta6fbefa67b5b0ed1ee42a9034ee74dfaed1c389a
radv: set ac_surf_info::num_channels correctly

num_channels has been introduced since "ac/surface: don't set
the display flag for obviously unsupported cases".

Based on RadeonSI.

Fixes: e29facff315 ("ac/surface: don't set the display flag for obviously unsupported cases (v2)")
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
src/amd/vulkan/vk_format.h