Re: [PATCH 3/4] drm/virtio: track whether or not a context has been initiated

2020-02-12 Thread Chia-I Wu
On Wed, Feb 12, 2020 at 5:54 PM Gurchetan Singh wrote: > > On Wed, Feb 12, 2020 at 10:50 AM Chia-I Wu wrote: > > > > On Tue, Feb 11, 2020 at 3:56 PM Gurchetan Singh > > wrote: > > > > > > We only want create a new virglrenderer context after the first > > > 3D ioctl. > > > > > > Signed-off-by: G

Re: [PATCH 3/4] drm/virtio: track whether or not a context has been initiated

2020-02-12 Thread Gurchetan Singh
On Wed, Feb 12, 2020 at 10:50 AM Chia-I Wu wrote: > > On Tue, Feb 11, 2020 at 3:56 PM Gurchetan Singh > wrote: > > > > We only want create a new virglrenderer context after the first > > 3D ioctl. > > > > Signed-off-by: Gurchetan Singh > > --- > > drivers/gpu/drm/virtio/virtgpu_drv.h | 1 + >

Re: [PATCH 3/4] drm/virtio: track whether or not a context has been initiated

2020-02-12 Thread Chia-I Wu
On Tue, Feb 11, 2020 at 3:56 PM Gurchetan Singh wrote: > > We only want create a new virglrenderer context after the first > 3D ioctl. > > Signed-off-by: Gurchetan Singh > --- > drivers/gpu/drm/virtio/virtgpu_drv.h | 1 + > drivers/gpu/drm/virtio/virtgpu_ioctl.c | 5 + > drivers/gpu/drm/vi

Re: [PATCH 3/4] drm/virtio: track whether or not a context has been initiated

2020-02-12 Thread Gerd Hoffmann
Hi, > --- a/drivers/gpu/drm/virtio/virtgpu_kms.c > +++ b/drivers/gpu/drm/virtio/virtgpu_kms.c > @@ -270,7 +270,9 @@ int virtio_gpu_driver_open(struct drm_device *dev, struct > drm_file *file) > return id; > } > > + > vfpriv->ctx_id = id; checkpatch warning here: -:

[PATCH 3/4] drm/virtio: track whether or not a context has been initiated

2020-02-11 Thread Gurchetan Singh
We only want create a new virglrenderer context after the first 3D ioctl. Signed-off-by: Gurchetan Singh --- drivers/gpu/drm/virtio/virtgpu_drv.h | 1 + drivers/gpu/drm/virtio/virtgpu_ioctl.c | 5 + drivers/gpu/drm/virtio/virtgpu_kms.c | 2 ++ 3 files changed, 8 insertions(+) diff --git