Skip to content

pvr: Fix pvr_csb_bake() list return.

Karmjit Mahil requested to merge (removed):dev/Fix_pvr_csb_bake_output_list into main

The list logic checks for list->next->next (+ some other checks) to point to the list itself to determine that there is just one single element.

 ┌───────────────────────┐
 └< { HEAD } >─< { E0 } >┘

When the list_head is copied as was being done previously, the list element's next pointer still points at the old head so the list_is_singular() check fails.

Fixes pvr_cmd_buffer.c:605:list_is_singular(&bo_list) assertion dEQP-VK.api.image_g.core.clear_color_attachment.cube_layers.b8g8r8a8_unorm

Signed-off-by: Karmjit Mahil Karmjit.Mahil@imgtec.com

Merge request reports