mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
panvk: Start a new batch when the job index gets above the limit
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12019>
This commit is contained in:
parent
498e5f44fa
commit
616aa3f138
1 changed files with 9 additions and 0 deletions
|
|
@ -1340,6 +1340,15 @@ panvk_CmdDraw(VkCommandBuffer commandBuffer,
|
|||
|
||||
struct panvk_batch *batch = cmdbuf->state.batch;
|
||||
|
||||
/* There are only 16 bits in the descriptor for the job ID, make sure all
|
||||
* the 3 (2 in Bifrost) jobs in this draw are in the same batch.
|
||||
*/
|
||||
if (batch->scoreboard.job_index >= (UINT16_MAX - 3)) {
|
||||
panvk_cmd_close_batch(cmdbuf);
|
||||
panvk_cmd_open_batch(cmdbuf);
|
||||
batch = cmdbuf->state.batch;
|
||||
}
|
||||
|
||||
panvk_cmd_alloc_fb_desc(cmdbuf);
|
||||
panvk_cmd_alloc_tls_desc(cmdbuf);
|
||||
panvk_cmd_prepare_ubos(cmdbuf);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue