From: Eric Anholt Subject: Re: [RFC PATCH] drm/vgem: virtual GEM provider Date: Wed, 11 Jan 2012 12:16:08 -0800 Message-ID: <87mx9u2dx3.fsf@eliezer.anholt.net> References: <1326309561-21055-1-git-send-email-ajax@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2144991499==" Return-path: In-Reply-To: <1326309561-21055-1-git-send-email-ajax@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Adam Jackson , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2144991499== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 11 Jan 2012 14:19:21 -0500, Adam Jackson wrote: > This is about as minimal of a virtual GEM service as possible. My plan > is to use this with non-native-3D hardware for buffer sharing between X > and DRI. >=20 > The current drisw winsys assumes an unmodified X server, which means > it's hopelessly inefficient for both the push direction of SwapBuffers/ > DrawPixels and the pull direction of GLX_EXT_texture_from_pixmap. I'm > still working through the details of what the xserver support will look > like, but in broad strokes it's "use vgem for CreatePixmap and > optionally the shadowfb". >=20 > Obviously alpha quality, mostly looking for feedback on the approach or > any glaring bugs. Eventually I'd like to see solutions for sharing gem > objects between drm devices and/or the dma_buf API, but that's a ways > down the road. I remember at one point you had a plan along the lines of passing shmem fds across the protocol. I'm curious what happened to that -- too hard to get the passing to work, or something else? I'm just thinking of kernel developer grumbling that you've duplicated something that pretty much existed before. If you can, I recommend using the intel gtt mapping type of mmap ioctl, where it gives you back an offset that you use the mmap syscall on, and implement the vgem_gem_fault to map its pages, instead. It should avoid tricking userland tools like valgrind, which really sucks with the do_mmap()-calling ioctl we have today. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8N7ggACgkQHUdvYGzw6vfKBwCeJU0lYoedA9IzbwCH/BUlPyTQ E+QAoINXkYALMDxi3HVTzvJPeSYc5f1V =Jn9J -----END PGP SIGNATURE----- --=-=-=-- --===============2144991499== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============2144991499==--