pvr: Remove false assumption from pvr_write_draw_indirect_vdm_stream()

Partially reverts: bd51305943
  pvr: Minor cleanup around pvr_emit_vdm_index_list()

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22751>
This commit is contained in:
Matt Coster
2023-04-28 10:11:07 +01:00
committed by Marge Bot
parent 5d11e50367
commit 37f202a54a

View File

@@ -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;