Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1391438

Re: [RFC v2 5/8] drm/fence: add in-fences support

From Greg Hackmann <ghackmann@google.com>
Newsgroups linux.kernel
Subject Re: [RFC v2 5/8] drm/fence: add in-fences support
Date 2016-04-29 23:20 +0200
Message-ID <rtnZo-4me-25@gated-at.bofh.it> (permalink)
References (6 earlier) <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>
Organization linux.* mail to news gateway

Show all headers | View raw


On 04/26/2016 11:39 PM, Daniel Vetter wrote:
>> 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.
>
> 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.
> -Daniel
>

It's not a strong preference on my end.  The 1:1 plane-to-layer mapping 
breaks down somewhat on hardware where you need to split large 
hwcomposer layers across multiple DRM planes.

That said, you can force that case to fit by just dup()ing the fence a 
bunch of times or arbitrarily picking one of the planes to assign the 
fence to.  Either is kludgey, but I can't argue it's kludgey enough to 
justify refactoring a bunch of existing driver code.

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [RFC v2 5/8] drm/fence: add in-fences support Greg Hackmann <ghackmann@google.com> - 2016-04-29 23:20 +0200

csiph-web