mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm/virtio: fix ring free check
If the virtio device supports indirect ring descriptors we need only one ring entry for the whole command. Take that into account when checking whenever the virtqueue has enough free entries for our command. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Link: http://patchwork.freedesktop.org/patch/msgid/20200207064653.14403-1-kraxel@redhat.com
This commit is contained in:
@@ -193,6 +193,7 @@ struct virtio_gpu_device {
|
||||
|
||||
bool has_virgl_3d;
|
||||
bool has_edid;
|
||||
bool has_indirect;
|
||||
|
||||
struct work_struct config_changed_work;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user