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>
This commit is contained in:
Iago Toral Quiroga 2020-03-25 12:19:11 +01:00 committed by Marge Bot
parent 010589a699
commit 32d261fad4
1 changed files with 2 additions and 2 deletions

View File

@ -407,7 +407,7 @@ emit_tlb_clear(struct v3dv_cmd_buffer *cmd_buffer,
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 @@ emit_tlb_clear(struct v3dv_cmd_buffer *cmd_buffer,
/* 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,