From: Rian Quinn Subject: Sharing Framebuffers between Client / Server Date: Fri, 17 Jan 2014 03:43:54 -0800 (PST) Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1492289003==" Return-path: Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com [209.85.223.175]) by gabe.freedesktop.org (Postfix) with ESMTP id 95BEEFD110 for ; Fri, 17 Jan 2014 03:43:57 -0800 (PST) Received: by mail-ie0-f175.google.com with SMTP id ar20so485879iec.34 for ; Fri, 17 Jan 2014 03:43:57 -0800 (PST) Received: from [10.0.1.12] (cpe-74-67-218-51.twcny.res.rr.com. [74.67.218.51]) by mx.google.com with ESMTPSA id fk5sm2920671igb.9.2014.01.17.03.43.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 03:43:54 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1492289003== Content-Type: multipart/alternative; boundary="=_69D102E4-AF7A-4EF0-9FBA-D33AF996220E" --=_69D102E4-AF7A-4EF0-9FBA-D33AF996220E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I am working on a client/server program, where the server creates (and has = access to a framebuffer), and then needs to share this framebuffer with a c= lient program so that this client program can draw into the framebuffer dir= ectly (i.e. no memcpy).=C2=A0 I am trying to figureout what the =E2=80=9Ccleanest=E2=80=9D way to do this= is, such that I can support Intel=E2=80=99s proprietary driver, the open s= ource AMD and NVidia drivers, and the VMWare driver (I have no need for the= proprietary ADM/NVidia drivers right now). From what I can tell, GEM is on= e way to do this. The problem is VMWare doesn=E2=80=99t support GEM.=C2=A0 I tried (knowing it would not work), using KMS to create the framebuffer, a= nd then sending the information needed to mmap to the client. This of cours= e failed because the framebuffer is marked non-sharable in the kernel.=C2=A0 To be clear, I am fine having to manually write ioctls for each driver, if = thats what it takes. But at this point, I am at a loss on the best method t= o share scannot buffers (or at least in a way that doesn=E2=80=99t make som= eone cringe when they see my code). Thanks, - Rian=C2=A0 --=_69D102E4-AF7A-4EF0-9FBA-D33AF996220E Content-Type: multipart/related; boundary="=_4F23304B-565D-4F45-853B-E7F160078580" --=_4F23304B-565D-4F45-853B-E7F160078580 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I am working on a client/server program, where the server creates (and = has access to a framebuffer), and then needs to share this framebuffer with= a client program so that this client program can draw into the framebuffer= directly (i.e. no memcpy).=C2=A0

I am trying to figureo= ut what the =E2=80=9Ccleanest=E2=80=9D way to do this is, such that I can s= upport Intel=E2=80=99s proprietary driver, the open source AMD and NVidia d= rivers, and the VMWare driver (I have no need for the proprietary ADM/NVidi= a drivers right now). From what I can tell, GEM is one way to do this. The = problem is VMWare doesn=E2=80=99t support GEM.=C2=A0

I tried (knowing it would not work), using KMS to= create the framebuffer, and then sending the information needed to mmap to= the client. This of course failed because the framebuffer is marked non-sh= arable in the kernel.=C2=A0

To be clear, I am fine having to manually write i= octls for each driver, if thats what it takes. But at this point, I am at a= loss on the best method to share scannot buffers (or at least in a way tha= t doesn=E2=80=99t make someone cringe when they see my code).

Thanks,
- Rian=C2=A0
--=_4F23304B-565D-4F45-853B-E7F160078580-- --=_69D102E4-AF7A-4EF0-9FBA-D33AF996220E-- --===============1492289003== 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 --===============1492289003==--