mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
panvk: Make sure replay of command buffers containing Dispatch calls works
In order to replay a command buffer, we need to reset the job status fields of all previously executed jobs, which is done by walking the the per-batch jobs array. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Cc: stable Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29443>
This commit is contained in:
parent
0142fdf81c
commit
8c2b4de386
1 changed files with 1 additions and 0 deletions
|
|
@ -1947,6 +1947,7 @@ panvk_per_arch(CmdDispatch)(VkCommandBuffer commandBuffer, uint32_t x,
|
|||
cmdbuf->state.compute.pipeline;
|
||||
struct panfrost_ptr job =
|
||||
pan_pool_alloc_desc(&cmdbuf->desc_pool.base, COMPUTE_JOB);
|
||||
util_dynarray_append(&batch->jobs, void *, job.cpu);
|
||||
|
||||
struct panvk_compute_sysvals *sysvals = &cmdbuf->state.compute.sysvals;
|
||||
sysvals->num_work_groups.x = x;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue