Re: External DMA to gpu

2018-10-04 Thread Dirk Eibach
Hi Pekka, > > > I suppose that means you still do a copy from the gbm_bo/dmabuf into a > > > window surface? If you used zwp_linux_dmabuf manually from your Wayland > > > client, you could avoid even that copy. It has the same caveat as below > > > though. > > > > I don't think so. The grabber

Re: External DMA to gpu

2018-10-02 Thread Dirk Eibach
Hi Pekka, I finally got everything working. I am using gbm_bo_create() and gbm_bo_get_fd() to get a buffer that is filled by my grabber. Then I use eglCreateImageKHR() and glEGLImageTargetTexture2DOES() to display it. My only problem left is that glEGLImageTargetTexture2DOES() does only accept

Re: External DMA to gpu

2018-09-12 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 >

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

Re: arch linux: weston 5.0.0 not working with nouveau

2018-09-10 Thread Dirk Eibach
I did a git bisect and found the commit "244244d1 (refs/bisect/bad) compositor-drm: Use GBM modifier API" introduced the problem. Am Mo., 10. Sep. 2018 um 10:12 Uhr schrieb Dirk Eibach : > > Perhaps I should add, that with rolling back to weston 4.0.0. > everything works fine.

Re: arch linux: weston 5.0.0 not working with nouveau

2018-09-10 Thread Dirk Eibach
Perhaps I should add, that with rolling back to weston 4.0.0. everything works fine. So nouveau support must have been broken somewhere inbetween. Am Mo., 10. Sep. 2018 um 08:59 Uhr schrieb Dirk Eibach : > > > Looks like some drm issue. Just wondering if you can use KMS APIs directly &g

Re: arch linux: weston 5.0.0 not working with nouveau

2018-09-10 Thread Dirk Eibach
> Looks like some drm issue. Just wondering if you can use KMS APIs directly > without seeing this issue? So for example, will kmscube draw something on the > screen (https://github.com/robclark/kmscube)? BTW, noticed that you are using > /dev/dri/card1 in your logs. What's at card0? Note that

arch linux: weston 5.0.0 not working with nouveau

2018-09-07 Thread Dirk Eibach
When I start weston it hangs with repeated error messages (see log). Starting with --use-pixman works fine. Log: Date: 2018-09-06 CEST [17:24:02.660] weston 5.0.0 https://wayland.freedesktop.org Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/