From 59ec79a2b838262bd27ed163d3f3ec2830c0d3f5 Mon Sep 17 00:00:00 2001 From: Matt Coster Date: Thu, 4 May 2023 09:53:32 +0100 Subject: [PATCH] pvr: Remove unneeded assert in pvr_get_hw_clear_color() Fixes: dEQP-VK.synchronization.op.single_queue.fence .write_draw_read_image_compute.image_128x128_r8_unorm Signed-off-by: Matt Coster Reported-by: James Glanville Reviewed-by: Karmjit Mahil Part-of: --- src/imagination/vulkan/pvr_formats.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/imagination/vulkan/pvr_formats.c b/src/imagination/vulkan/pvr_formats.c index 4998f55255b..a977c11c36f 100644 --- a/src/imagination/vulkan/pvr_formats.c +++ b/src/imagination/vulkan/pvr_formats.c @@ -384,13 +384,6 @@ void pvr_get_hw_clear_color( const enum pvr_pbe_accum_format pbe_accum_format = pvr_get_pbe_accum_format(vk_format); - const uint32_t nr_components = vk_format_get_nr_components(vk_format); - - /* Make sure that the caller has zeroed out unused components. Otherwise we - * might end up with garbage being packed with the actual values. - */ - for (uint32_t i = nr_components; i < 4; i++) - assert(value.uint32[i] == 0); static_assert(ARRAY_SIZE(value.uint32) == PVR_CLEAR_COLOR_ARRAY_SIZE, "Size mismatch. Unknown/unhandled extra values.");