tu/vdrm: Fix userspace fence cmds
Somehow the update of the fence value to write was dropped, so the
cmdstream that wrote the fence value would simply write zero over and
over again.
Fixes: 84d6eedd5e ("tu: Refactor the submit path")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33433>
This commit is contained in:
parent
471961d0ca
commit
081869e591
1 changed files with 1 additions and 0 deletions
|
|
@ -937,6 +937,7 @@ virtio_queue_submit(struct tu_queue *queue, void *_submit,
|
|||
queue->fence = 0;
|
||||
uint32_t fence = ++queue->fence;
|
||||
int idx = fence % ARRAY_SIZE(fcmds->cmds);
|
||||
fcmds->cmds[idx].fence = fence;
|
||||
struct tu_cs_entry fence_cs = {
|
||||
.bo = vdev->fence_cmds_mem,
|
||||
.size = 5 * 4,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue