mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
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:
parent
fa3b7ef943
commit
59ec79a2b8
1 changed files with 0 additions and 7 deletions
|
|
@ -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.");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue