turnip: Skip telling the kernel the BO list when we don't need any.
In fencing, we sometimes do a dummy submit with no nr_cmds. If we don't have commands to execute, we don't need to pin or fence any BOs either. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15038>
This commit is contained in:
@@ -1023,7 +1023,7 @@ tu_queue_submit_locked(struct tu_queue *queue, struct tu_queue_submit *submit)
|
||||
.flags = flags,
|
||||
.queueid = queue->msm_queue_id,
|
||||
.bos = (uint64_t)(uintptr_t) queue->device->bo_list,
|
||||
.nr_bos = queue->device->bo_count,
|
||||
.nr_bos = submit->entry_count ? queue->device->bo_count : 0,
|
||||
.cmds = (uint64_t)(uintptr_t)submit->cmds,
|
||||
.nr_cmds = submit->entry_count,
|
||||
.in_syncobjs = (uint64_t)(uintptr_t)submit->in_syncobjs,
|
||||
|
||||
Reference in New Issue
Block a user