pvr: fixup transfer primary sub-command list
authorLuigi Santivetti <luigi.santivetti@imgtec.com>
Mon, 3 Apr 2023 14:08:43 +0000 (15:08 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 30 Jun 2023 08:33:08 +0000 (08:33 +0000)
commit0925b07f4f54e66cf3f7c2b9b4571262a4f0f3da
treee039349349e1b653dcb3deebb38927bfe1b6d1b8
parentb544a6d6c3569b15abd9e99c82f69277a5b1b3bd
pvr: fixup transfer primary sub-command list

When we allocate a new primary sub-command of type
PVR_SUB_CMD_TYPE_TRANSFER we need to make sure the list backing
transfer sub-commands can be shared and managed by both the
secondary and primary sub-command. Do this by always using a
pointer to maintain the list.

Found with:
  dEQP-VK.memory.pipeline_barrier.host_write_transfer_src.8192

Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
Reported-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23918>
src/imagination/vulkan/pvr_cmd_buffer.c
src/imagination/vulkan/pvr_job_transfer.c
src/imagination/vulkan/pvr_private.h