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:
Rob Clark 2025-04-07 10:39:25 -07:00 committed by Marge Bot
parent 471961d0ca
commit 081869e591

View file

@ -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,