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 <matt.coster@imgtec.com>
Reported-by: James Glanville <james.glanville@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22868>
This commit is contained in:
Matt Coster 2023-05-04 09:53:32 +01:00 committed by Marge Bot
parent fa3b7ef943
commit 59ec79a2b8

View file

@ -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.");