virgl: remove transfer after transfer_write
authorChia-I Wu <olvaffe@gmail.com>
Mon, 8 Jul 2019 21:35:27 +0000 (14:35 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 9 Jul 2019 21:26:55 +0000 (14:26 -0700)
Now that virgl_transfer_queue_is_queued does not search
COMPLETED_LIST, we don't need to move transfers to that list.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
src/gallium/drivers/virgl/virgl_transfer_queue.c

index 4511d2f12d2dec2283cd87793520974772a73336..ea1e759bc69de5ebb9256343d6e6e9ec1945e225 100644 (file)
@@ -212,8 +212,7 @@ static void transfer_write(struct virgl_transfer_queue *queue,
    // the exec buffer command.
    virgl_encode_transfer(queue->vs, buf, queued, VIRGL_TRANSFER_TO_HOST);
 
-   list_delinit(&queued->queue_link);
-   list_addtail(&queued->queue_link, &queue->lists[COMPLETED_LIST]);
+   remove_transfer(queue, args);
 }
 
 static void compare_and_perform_action(struct virgl_transfer_queue *queue,