Re: [PATCH] doc: gpu: Add document describing buffer exchange

2023-08-03 Thread Daniel Stone
On Thu, 3 Aug 2023 at 16:46, Daniel Stone wrote: > On Tue, 9 Nov 2021 at 09:13, Daniel Vetter wrote: > > Seconded on just landing this without trying to perfect it first, because > > I was just looking for it and didn't find it anywhere :-/ > > Swing and a miss ... > > I've just sent out v2 with

Re: [PATCH] doc: gpu: Add document describing buffer exchange

2023-08-03 Thread Daniel Stone
On Tue, 9 Nov 2021 at 09:13, Daniel Vetter wrote: > On Mon, Nov 08, 2021 at 04:18:22PM -0800, James Jones wrote: > > On 9/6/21 5:28 AM, Simon Ser wrote: > > > > Since there's a lot of confusion around this, document both the rules > > > > and the best practice around negotiating, allocating,

Re: [PATCH] doc: gpu: Add document describing buffer exchange

2021-11-09 Thread Simon Ser
On Tuesday, November 9th, 2021 at 10:13, Daniel Vetter wrote: > On Mon, Nov 08, 2021 at 04:18:22PM -0800, James Jones wrote: > > On 9/6/21 5:28 AM, Simon Ser wrote: > > > > Since there's a lot of confusion around this, document both the rules > > > > and the best practice around negotiating,

Re: [PATCH] doc: gpu: Add document describing buffer exchange

2021-11-09 Thread Daniel Vetter
On Mon, Nov 08, 2021 at 04:18:22PM -0800, James Jones wrote: > On 9/6/21 5:28 AM, Simon Ser wrote: > > > Since there's a lot of confusion around this, document both the rules > > > and the best practice around negotiating, allocating, importing, and > > > using buffers when crossing

Re: [PATCH] doc: gpu: Add document describing buffer exchange

2021-11-09 Thread Daniel Vetter
On Mon, Nov 08, 2021 at 04:21:04PM -0800, James Jones wrote: > On 9/8/21 2:44 AM, Simon Ser wrote: > > > stride > > > > > > > I think what's clear is: > > > > - Per-plane property > > - In bytes > > - Offset between two consecutive rows > > > > How that applies to weird YUV formats is

Re: [PATCH] doc: gpu: Add document describing buffer exchange

2021-11-08 Thread James Jones
On 9/8/21 2:44 AM, Simon Ser wrote: stride I think what's clear is: - Per-plane property - In bytes - Offset between two consecutive rows How that applies to weird YUV formats is the tricky question… Btw. there was a fun argument whether the same modifier value could mean

Re: [PATCH] doc: gpu: Add document describing buffer exchange

2021-11-08 Thread James Jones
On 9/6/21 5:28 AM, Simon Ser wrote: Since there's a lot of confusion around this, document both the rules and the best practice around negotiating, allocating, importing, and using buffers when crossing context/process/device/subsystem boundaries. This ties up all of dmabuf, formats and

Re: [PATCH] doc: gpu: Add document describing buffer exchange

2021-09-08 Thread Daniel Vetter
On Sun, Sep 05, 2021 at 01:27:42PM +0100, Daniel Stone wrote: > Since there's a lot of confusion around this, document both the rules > and the best practice around negotiating, allocating, importing, and > using buffers when crossing context/process/device/subsystem boundaries. > > This ties up

Re: [PATCH] doc: gpu: Add document describing buffer exchange

2021-09-08 Thread Simon Ser
> stride > I think what's clear is: - Per-plane property - In bytes - Offset between two consecutive rows How that applies to weird YUV formats is the tricky question… > Btw. there was a fun argument whether the same modifier value could > mean different things on different devices.

Re: [PATCH] doc: gpu: Add document describing buffer exchange

2021-09-08 Thread Pekka Paalanen
On Sun, 5 Sep 2021 13:27:42 +0100 Daniel Stone wrote: > Since there's a lot of confusion around this, document both the rules > and the best practice around negotiating, allocating, importing, and > using buffers when crossing context/process/device/subsystem boundaries. > > This ties up all

Re: [PATCH] doc: gpu: Add document describing buffer exchange

2021-09-06 Thread Robert Beckett
On 05/09/2021 13:27, Daniel Stone wrote: Since there's a lot of confusion around this, document both the rules and the best practice around negotiating, allocating, importing, and using buffers when crossing context/process/device/subsystem boundaries. This ties up all of dmabuf, formats and

Re: [PATCH] doc: gpu: Add document describing buffer exchange

2021-09-06 Thread Simon Ser
> Since there's a lot of confusion around this, document both the rules > and the best practice around negotiating, allocating, importing, and > using buffers when crossing context/process/device/subsystem boundaries. > > This ties up all of dmabuf, formats and modifiers, and their usage. > >

[PATCH] doc: gpu: Add document describing buffer exchange

2021-09-05 Thread Daniel Stone
Since there's a lot of confusion around this, document both the rules and the best practice around negotiating, allocating, importing, and using buffers when crossing context/process/device/subsystem boundaries. This ties up all of dmabuf, formats and modifiers, and their usage. Signed-off-by: