Module: Mesa Branch: master Commit: 85e5bbd11cb445c89630b93846741e0b1d3cedc4 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=85e5bbd11cb445c89630b93846741e0b1d3cedc4
Author: Bas Nieuwenhuizen <[email protected]> Date: Tue Feb 2 04:02:10 2021 +0100 radv: Allow extra planes for DCC. plane_count is only the format plane count. Fixes: 7f7da82dbb7 ("radv: Add image layout with drm format modifiers.") Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8817> --- src/amd/vulkan/radv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 7642a25a1fe..b3552f2c116 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -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); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
