Let's delay enqueuing the context creation command until the first 3D ioctl, as we add more context types. This is based on kraxel's "drm/virtio: rework batching" patch and needs that to work correctly. Gurchetan Singh (4): drm/virtio: use consistent names for drm_files drm/virtio: factor out context create cmd drm/virtio: track whether or not a context has been initiated drm/virtio: enqueue virtio_gpu_create_context after first 3D ioctl drivers/gpu/drm/virtio/virtgpu_drv.h | 3 ++ drivers/gpu/drm/virtio/virtgpu_ioctl.c | 46 ++++++++++++++++++++------ drivers/gpu/drm/virtio/virtgpu_kms.c | 11 +++--- 3 files changed, 44 insertions(+), 16 deletions(-) -- 2.25.0.225.g125e21ebc7-goog _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel