Module: Mesa Branch: main Commit: 37f202a54ad86b8d6dab04b2f2a4785bb024576d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=37f202a54ad86b8d6dab04b2f2a4785bb024576d
Author: Matt Coster <[email protected]> Date: Fri Apr 28 10:11:07 2023 +0100 pvr: Remove false assumption from pvr_write_draw_indirect_vdm_stream() Partially reverts: bd513059433a6bbda8ce0f95b85dcc76d48f959c pvr: Minor cleanup around pvr_emit_vdm_index_list() Signed-off-by: Matt Coster <[email protected]> Reviewed-by: Frank Binns <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22751> --- src/imagination/vulkan/pvr_cmd_buffer.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/imagination/vulkan/pvr_cmd_buffer.c b/src/imagination/vulkan/pvr_cmd_buffer.c index ffd24d6ae73..87d293c3d36 100644 --- a/src/imagination/vulkan/pvr_cmd_buffer.c +++ b/src/imagination/vulkan/pvr_cmd_buffer.c @@ -6112,14 +6112,10 @@ pvr_write_draw_indirect_vdm_stream(struct pvr_cmd_buffer *cmd_buffer, struct pvr_pds_drawindirect_program pds_prog = { 0 }; uint32_t word0; - /* Draw indirect always has index offset and instance count... */ + /* Draw indirect always has index offset and instance count. */ list_hdr->index_offset_present = true; list_hdr->index_instance_count_present = true; - /* ...and requires a zeroed index_base_addr. */ - list_hdr->index_base_addrmsb = PVR_DEV_ADDR_INVALID; - assert(!list_hdr->index_addr_present); - pvr_cmd_pack(VDMCTRL_INDEX_LIST0)(&word0, list_hdr); pds_prog.support_base_instance = true;
