plane_count is only the format plane count.
Fixes:
7f7da82dbb7 ("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>
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);