[PATCH 1/5] drm/vgem: virtual GEM provider

Adam Jackson ajax at redhat.com
Tue Feb 21 07:03:34 PST 2012


On Mon, 2012-02-20 at 18:10 +0100, Ben Widawsky wrote:
> On Thu, 16 Feb 2012 05:52:12 -0800 (PST)
> Jakob Bornecrantz <jakob at vmware.com> wrote:
> > Any reason why you are not using the dumb_bo interface? I at least
> > would like to be able to offer vgem on the vmwgfx device when the
> > host has disabled 3D.
> 
> I thought dumb bo interface was an extension for an existing DRM GEM driver. In my
> case, for prototyping dma_buf support, this is non-ideal. I'm not sure what Adam
> thinks of this though (I imagine he wants a device independent driver though).
> 
> I may be completely off.

Assuming by this you mean DRM_IOCTL_MODE_{CREATE,MAP,DESTROY}_DUMB, I
wasn't considering that because I wasn't expecting this device to expose
a scanout buffer.  It's hard to imagine how it would, given that API,
since you'd need userspace to jam the framebuffer info in from above.

If the vmwgfx ddx wants to do this kind of fallback, great, but that's
just ddx logic, open the right drm device and change the dri driver
name.  If you don't want to rely on a vgem device node existing... well,
tough, I guess, since the ioctl numbers will collide.  It needs to exist
for the vesa-like case regardless.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20120221/31b9a222/attachment.pgp>


More information about the dri-devel mailing list