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:
parent
010589a699
commit
32d261fad4
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue