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:
committed by
Marge Bot
parent
c022c9603d
commit
85e5bbd11c
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user