Re: External DMA to gpu

2018-09-11 Thread Dirk Eibach
Hi Pekka, > that would not involve Weston in any special way at all. Buffer > allocation is usually done in the client any way the client wants. To > ensure the buffer can be used by the compositor before you fill it with > data, you would export your buffer as a dmabuf and use > zwp_linux_dmabuf_

Re: egl image creation in case of atomic

2018-09-11 Thread Pekka Paalanen
On Tue, 11 Sep 2018 16:10:17 +0300 Pekka Paalanen wrote: > On Tue, 11 Sep 2018 12:47:15 + > "Hosokawa, Kenji (ADITG/ESB)" wrote: > > > We would like to discuss the following part. > > >Creating egl images are not needed at all, when the client buffer > > >can be imported to a DRM plane. W

Re: External DMA to gpu

2018-09-11 Thread Pekka Paalanen
On Tue, 11 Sep 2018 15:28:35 +0200 Dirk Eibach wrote: > I have a grabber device on The PCIe-bus that is able to transfer image > data to other PCIe devices. > I want to setup a wayland client, that reserves a buffer in GPU > memory. Then the grabber could DMA to the buffer address. After > finish

External DMA to gpu

2018-09-11 Thread Dirk Eibach
I have a grabber device on The PCIe-bus that is able to transfer image data to other PCIe devices. I want to setup a wayland client, that reserves a buffer in GPU memory. Then the grabber could DMA to the buffer address. After finishing the transfer, the client could flip the buffer. Is there alrea

Re: egl image creation in case of atomic

2018-09-11 Thread Pekka Paalanen
On Tue, 11 Sep 2018 12:47:15 + "Hosokawa, Kenji (ADITG/ESB)" wrote: > We would like to discuss the following part. > >Creating egl images are not needed at all, when the client buffer > >can be imported to a DRM plane. We would like to reduce CPU usage of > >weston in that case. Hi, ok, t

RE: egl image creation in case of atomic

2018-09-11 Thread Hosokawa, Kenji (ADITG/ESB)
> -Original Message- > From: Pekka Paalanen > Sent: Dienstag, 11. September 2018 13:20 > To: Hosokawa, Kenji (ADITG/ESB) > Cc: wayland-devel@lists.freedesktop.org > Subject: Re: egl image creation in case of atomic > > On Tue, 28 Aug 2018 12:10:06 + > "Hosokawa, Kenji (ADITG/ESB)"

Re: egl image creation in case of atomic

2018-09-11 Thread Pekka Paalanen
On Tue, 28 Aug 2018 12:10:06 + "Hosokawa, Kenji (ADITG/ESB)" wrote: > Hi, > > When eglSwapInterval is 0, clients may send buffers without waiting > frame callbacks. Currently, egl image is created when a buffer is > committed from client. But egl image is only needed, when gl-renderer > is u