v3dv: fix job subpass index for vkCmdClearAttachments jobs
We had changed the interface for job starts so they take the subpass index
rather than a boolean indicating whether the job starts a new subpas, but we
forgot to update this accordingly.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
diff --git a/src/broadcom/vulkan/v3dv_meta_clear.c b/src/broadcom/vulkan/v3dv_meta_clear.c
index f00fd35..00ef277 100644
--- a/src/broadcom/vulkan/v3dv_meta_clear.c
+++ b/src/broadcom/vulkan/v3dv_meta_clear.c
@@ -407,7 +407,7 @@
struct v3dv_frame_tiling subpass_tiling;
memcpy(&subpass_tiling, &job->frame_tiling, sizeof(subpass_tiling));
- job = v3dv_cmd_buffer_start_job(cmd_buffer, false);
+ job = v3dv_cmd_buffer_start_job(cmd_buffer, cmd_buffer->state.subpass_idx);
/* vkCmdClearAttachments runs inside a render pass */
job->is_subpass_continue = true;
@@ -425,7 +425,7 @@
/* Make sure we have an active job to continue the render pass recording
* after the clear.
*/
- job = v3dv_cmd_buffer_start_job(cmd_buffer, false);
+ job = v3dv_cmd_buffer_start_job(cmd_buffer, cmd_buffer->state.subpass_idx);
v3dv_job_start_frame(job,
subpass_tiling.width,