Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1390549
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Rob Clark <robdclark@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [RFC v2 5/8] drm/fence: add in-fences support |
| Date | Thu, 28 Apr 2016 23:30:02 +0200 |
| Message-ID | <rt1Fw-2Aw-7@gated-at.bofh.it> (permalink) |
| References | <rs8g2-5TZ-33@gated-at.bofh.it> <rsc0h-K8-5@gated-at.bofh.it> <rscjD-TC-7@gated-at.bofh.it> <rse26-2io-7@gated-at.bofh.it> <rseYa-34w-25@gated-at.bofh.it> <rsfhw-3db-25@gated-at.bofh.it> <rsfUe-3TD-23@gated-at.bofh.it> <rsgng-46z-3@gated-at.bofh.it> <rshsZ-5r9-11@gated-at.bofh.it> <rsi5I-5Mq-29@gated-at.bofh.it> <rsriF-4Tl-5@gated-at.bofh.it> |
| X-Original-To | Greg Hackmann <ghackmann@google.com>, Ville Syrjälä <ville.syrjala@linux.intel.com>, Gustavo Padovan <gustavo.padovan@collabora.co.uk>, Gustavo Padovan <gustavo@padovan.org>, Daniel Stone <daniels@collabora.com>, Riley Andrews <riandrews@android.com>, "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Arve Hjønnevåg <arve@android.com>, John Harrison <John.C.Harrison@intel.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-transfer-encoding; bh=us3xWM5TeQJjJl4MGGAQSJwQ3lMwrtSBujxlkgjPaXs=; b=NkR288H2x0pbNev+XwAK5P7Ap6qKNGj+zD8BlEYnEJSSHKdIaF/vc3V1TC0Uu6D6tq ilbgCtPWH0FLtSsN84Fj1rh8SoLbu5puKxJH7q/Vp5AbBMxsrj+R/pIl2Kp/TK9+ICLU 1cYjP0CsAByPjg9YJcE1iGPdFqj9n9xXDAtjqAkIuMAIpZVOJhFZ9/AFDZG6GarnadQi 4V2LvVEW8pzbqNgem5uhDjS2dQUX7rqyfB/ivd+yeCrH8Rt/qw3SHXdS6ApkABCJlYSF 06vmW2rcK3IHdwBSCk4NTZEJcJfP2JxBiCGybEyCKIXwZig07bQxiJ7Lmy1E42cVtSBS HC8g== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-transfer-encoding; bh=us3xWM5TeQJjJl4MGGAQSJwQ3lMwrtSBujxlkgjPaXs=; b=FtcWVk7oOw+QzHvHBviBUaodL4Gbvi6hopLP8ViKyHIAhbPVW/GaBKKcn7tSYKM8wK TzKkP4Ab0UluLla+emSiCNQpFdiPwGOLua3sb6/ZIqsxY8WEzv9pYR7LAnDMhLh8Mrp/ /IKeX7J+YfFE9JAwdo6Ou/ACqw92UpLRlJ8BW8ulcUY6T5+X5eadpPaS6cf/BGYl5h4+ YFjrrPnAbfeNfWofDSqTJC3Z6/giBDjekY+82lTqLB4LEizN52hoLV2GPg6d0ZmswRSi kzCdRhJ9OUxUNG4UcbQaurnrBq4PaUas+n3ZT5JvWOSL2g19iVGTF8UVpxkzFWWo+igt LVIQ== |
| X-Gm-Message-State | AOPr4FXxEiRyd0qIJpCaOjDdCTpnZkzrthFwbEDDFoMT+BQfAjRuuNUAM6vLpNCnJZgQ6HLHwgTNjhw4h0nztw== |
| MIME-Version | 1.0 |
| X-Received | by 10.129.106.9 with SMTP id f9mr9390623ywc.90.1461878889279; Thu, 28 Apr 2016 14:28:09 -0700 (PDT) |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8BIT |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 65 |
| Organization | linux.* mail to news gateway |
| X-Original-Date | Thu, 28 Apr 2016 17:28:09 -0400 |
| X-Original-Message-ID | <CAF6AEGsNyamM8xZkqvawbwbfhNQFsfRV-Kkcs6=R8FayyjGCdQ@mail.gmail.com> |
| X-Original-References | <20160426101050.GN4329@intel.com> <20160426141422.GG7857@joana> <20160426143635.GW8291@phenom.ffwll.local> <20160426162621.GU4329@intel.com> <20160426172049.GB2558@phenom.ffwll.local> <20160426174045.GC4329@intel.com> <20160426182346.GC2558@phenom.ffwll.local> <20160426185506.GH4329@intel.com> <20160426200505.GD2558@phenom.ffwll.local> <571FD402.6050407@google.com> <20160427063904.GH2558@phenom.ffwll.local> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1390549 |
Show key headers only | View raw
On Wed, Apr 27, 2016 at 2:39 AM, Daniel Vetter <daniel@ffwll.ch> wrote: > On Tue, Apr 26, 2016 at 01:48:02PM -0700, Greg Hackmann wrote: >> On 04/26/2016 01:05 PM, Daniel Vetter wrote: >> >On Tue, Apr 26, 2016 at 09:55:06PM +0300, Ville Syrjälä wrote: >> >>On Tue, Apr 26, 2016 at 08:23:46PM +0200, Daniel Vetter wrote: >> >>>On Tue, Apr 26, 2016 at 08:40:45PM +0300, Ville Syrjälä wrote: >> >>>But really the reason for per-plane is hw composer from >> >>>Android. I don't see any point in designing an api that's needlessly >> >>>different from what the main user expects (even if it may be silly). >> >> >> >>What are they doing that can't stuff the fences into an array >> >>instead of props? >> > >> >The hw composer interface is one in-fence per plane. That's really the >> >major reason why the kernel interface is built to match. And I really >> >don't think we should diverge just because we have a slight different >> >color preference ;-) >> > >> >As long as you end up with a pile of fences somehow it'll work. >> >-Daniel >> > >> >> The relationship between layers and fences is only fuzzy and indirect >> though. The relationship is really between the buffer you're displaying on >> that layer, and the fence representing the work done to render into that >> buffer. SurfaceFlinger just happens to bundle them together inside the same >> struct hwc_layer_1 as an API convenience. >> >> Which is kind of splitting hairs as long as you have a 1-to-1 relationship >> between layers and DRM planes. But that's not always the case. >> >> A (per-CRTC?) array of fences would be more flexible. And even in the cases >> where you could make a 1-to-1 mapping between planes and fences, it's not >> that much more work for userspace to assemble those fences into an array >> anyway. > > I'm ok with an array too if that's what you folks prefer (it's meant to be > used by you after all). I just don't want just 1 fence for the entire op, > forcing userspace to first merge them all together. That seems silly. I was kinda more a fan of array too, if for no other reason that to be consistent w/ how out-fences work. (And using property just for in-fence seemed slightly weird/abusive to me) > One side-effect of that is that we'd also have to rework all the internal > bits and move fences around in atomic. Which means change a pile of > drivers. Not sure that's worth it, but I'd be ok either way really. hmm, well we could keep the array per-plane (and if one layer is using multiple planes, just list the same fd multiple times).. then it mostly comes down to changes in the ioctl fxn itself. BR, -R > -Daniel > -- > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [RFC v2 5/8] drm/fence: add in-fences support Rob Clark <robdclark@gmail.com> - 2016-04-28 23:30 +0200
Re: [RFC v2 5/8] drm/fence: add in-fences support Daniel Stone <daniel@fooishbar.org> - 2016-04-29 09:50 +0200
Re: [RFC v2 5/8] drm/fence: add in-fences support Rob Clark <robdclark@gmail.com> - 2016-04-30 00:30 +0200
csiph-web