radv: Allow extra planes for DCC.

plane_count is only the format plane count.

Fixes: 7f7da82dbb ("radv: Add image layout with drm format modifiers.")
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8817>
This commit is contained in:
Bas Nieuwenhuizen
2021-02-02 04:02:10 +01:00
committed by Marge Bot
parent c022c9603d
commit 85e5bbd11c
+1 -1
View File
@@ -1377,7 +1377,7 @@ radv_image_create_layout(struct radv_device *device,
if (result != VK_SUCCESS)
return result;
assert(!mod_info || mod_info->drmFormatModifierPlaneCount == image->plane_count);
assert(!mod_info || mod_info->drmFormatModifierPlaneCount >= image->plane_count);
radv_image_reset_layout(image);