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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user