search for: virtio_gpu_featur

Displaying 6 results from an estimated 6 matches for "virtio_gpu_featur".

Did you mean: virtio_gpu_features
2019 Mar 20
1
[PATCH] drm/virtio: add virtio-gpu-features debugfs file.
...const char *name, + bool value) +{ + seq_printf(m, "%-16s : %s\n", name, value ? "yes" : "no"); +} + +static void virtio_add_int(struct seq_file *m, const char *name, + int value) +{ + seq_printf(m, "%-16s : %d\n", name, value); +} + +static int virtio_gpu_features(struct seq_file *m, void *data) +{ + struct drm_info_node *node = (struct drm_info_node *) m->private; + struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; + + virtio_add_bool(m, "virgl", vgdev->has_virgl_3d); + virtio_add_bool(m, "edid", vgdev-&gt...
2020 Feb 07
1
[PATCH v2] drm/virtio: fix ring free check
...ruct work_struct config_changed_work; diff --git a/drivers/gpu/drm/virtio/virtgpu_debugfs.c b/drivers/gpu/drm/virtio/virtgpu_debugfs.c index 5156e6b279db..e27120d512b0 100644 --- a/drivers/gpu/drm/virtio/virtgpu_debugfs.c +++ b/drivers/gpu/drm/virtio/virtgpu_debugfs.c @@ -47,6 +47,7 @@ static int virtio_gpu_features(struct seq_file *m, void *data) virtio_add_bool(m, "virgl", vgdev->has_virgl_3d); virtio_add_bool(m, "edid", vgdev->has_edid); + virtio_add_bool(m, "indirect", vgdev->has_indirect); virtio_add_int(m, "cap sets", vgdev->num_capsets); vi...
2023 May 26
1
[PATCH] drm: Remove unnecessary (void*) conversions
..._debugfs.c b/drivers/gpu/drm/virtio/virtgpu_debugfs.c index 853dd9aa397e..577691af9707 100644 --- a/drivers/gpu/drm/virtio/virtgpu_debugfs.c +++ b/drivers/gpu/drm/virtio/virtgpu_debugfs.c @@ -43,7 +43,7 @@ static void virtio_gpu_add_int(struct seq_file *m, const char *name, int value) static int virtio_gpu_features(struct seq_file *m, void *data) { - struct drm_info_node *node = (struct drm_info_node *)m->private; + struct drm_info_node *node = m->private; struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; virtio_gpu_add_bool(m, "virgl", vgdev->has_virgl_3d);...
2023 May 26
1
[PATCH] drm: Remove unnecessary (void*) conversions
..._debugfs.c b/drivers/gpu/drm/virtio/virtgpu_debugfs.c index 853dd9aa397e..577691af9707 100644 --- a/drivers/gpu/drm/virtio/virtgpu_debugfs.c +++ b/drivers/gpu/drm/virtio/virtgpu_debugfs.c @@ -43,7 +43,7 @@ static void virtio_gpu_add_int(struct seq_file *m, const char *name, int value) static int virtio_gpu_features(struct seq_file *m, void *data) { - struct drm_info_node *node = (struct drm_info_node *)m->private; + struct drm_info_node *node = m->private; struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; virtio_gpu_add_bool(m, "virgl", vgdev->has_virgl_3d);...
2023 May 26
1
[PATCH] drm: Remove unnecessary (void*) conversions
...tio/virtgpu_debugfs.c > index 853dd9aa397e..577691af9707 100644 > --- a/drivers/gpu/drm/virtio/virtgpu_debugfs.c > +++ b/drivers/gpu/drm/virtio/virtgpu_debugfs.c > @@ -43,7 +43,7 @@ static void virtio_gpu_add_int(struct seq_file *m, const char *name, int value) > > static int virtio_gpu_features(struct seq_file *m, void *data) > { > - struct drm_info_node *node = (struct drm_info_node *)m->private; > + struct drm_info_node *node = m->private; > struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; > > virtio_gpu_add_bool(m, "vir...
2023 May 26
1
[PATCH] drm: Remove unnecessary (void*) conversions
...tio/virtgpu_debugfs.c > index 853dd9aa397e..577691af9707 100644 > --- a/drivers/gpu/drm/virtio/virtgpu_debugfs.c > +++ b/drivers/gpu/drm/virtio/virtgpu_debugfs.c > @@ -43,7 +43,7 @@ static void virtio_gpu_add_int(struct seq_file *m, const char *name, int value) > > static int virtio_gpu_features(struct seq_file *m, void *data) > { > - struct drm_info_node *node = (struct drm_info_node *)m->private; > + struct drm_info_node *node = m->private; > struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; > > virtio_gpu_add_bool(m, "vir...