mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
virtio-gpu: remove useless 'waiting' field
Let's check renderer_blocked instead directly. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Christophe Fergeau <cfergeau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20190221114330.17968-5-marcandre.lureau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
ad341aacbf
commit
9a6d74c0de
2 changed files with 1 additions and 4 deletions
|
@ -889,8 +889,7 @@ void virtio_gpu_process_cmdq(VirtIOGPU *g)
|
||||||
while (!QTAILQ_EMPTY(&g->cmdq)) {
|
while (!QTAILQ_EMPTY(&g->cmdq)) {
|
||||||
cmd = QTAILQ_FIRST(&g->cmdq);
|
cmd = QTAILQ_FIRST(&g->cmdq);
|
||||||
|
|
||||||
cmd->waiting = g->renderer_blocked;
|
if (g->renderer_blocked) {
|
||||||
if (cmd->waiting) {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -939,7 +938,6 @@ static void virtio_gpu_handle_ctrl(VirtIODevice *vdev, VirtQueue *vq)
|
||||||
cmd->vq = vq;
|
cmd->vq = vq;
|
||||||
cmd->error = 0;
|
cmd->error = 0;
|
||||||
cmd->finished = false;
|
cmd->finished = false;
|
||||||
cmd->waiting = false;
|
|
||||||
QTAILQ_INSERT_TAIL(&g->cmdq, cmd, next);
|
QTAILQ_INSERT_TAIL(&g->cmdq, cmd, next);
|
||||||
cmd = virtqueue_pop(vq, sizeof(struct virtio_gpu_ctrl_command));
|
cmd = virtqueue_pop(vq, sizeof(struct virtio_gpu_ctrl_command));
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,6 @@ struct virtio_gpu_ctrl_command {
|
||||||
VirtQueue *vq;
|
VirtQueue *vq;
|
||||||
struct virtio_gpu_ctrl_hdr cmd_hdr;
|
struct virtio_gpu_ctrl_hdr cmd_hdr;
|
||||||
uint32_t error;
|
uint32_t error;
|
||||||
bool waiting;
|
|
||||||
bool finished;
|
bool finished;
|
||||||
QTAILQ_ENTRY(virtio_gpu_ctrl_command) next;
|
QTAILQ_ENTRY(virtio_gpu_ctrl_command) next;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue