[PATCH] intel: make bufmgr_gem shareable from different API

2014-09-12 Thread Chris Wilson
On Fri, Sep 12, 2014 at 11:27:07AM +0100, Lionel Landwerlin wrote: > When using Mesa and LibVA in the same process, one would like to be > able bind buffers from the output of the decoder to a GL texture > through an EGLImage. > > LibVA can reuse buffers allocated by Gbm through a file descriptor.

[PATCH] intel: make bufmgr_gem shareable from different API

2014-09-12 Thread Lionel Landwerlin
When using Mesa and LibVA in the same process, one would like to be able bind buffers from the output of the decoder to a GL texture through an EGLImage. LibVA can reuse buffers allocated by Gbm through a file descriptor. It will then wrap it into a drm_intel_bo with drm_intel_bo_gem_create_from_p

[PATCH] intel: make bufmgr_gem shareable from different API

2014-09-12 Thread Chris Wilson
On Thu, Sep 11, 2014 at 05:59:40PM +0100, Lionel Landwerlin wrote: > When using Mesa and LibVA in the same process, one would like to be > able bind buffers from the output of the decoder to a GL texture > through an EGLImage. > > LibVA can reuse buffers allocated by Gbm through a file descriptor.

[PATCH] intel: make bufmgr_gem shareable from different API

2014-09-11 Thread Lionel Landwerlin
When using Mesa and LibVA in the same process, one would like to be able bind buffers from the output of the decoder to a GL texture through an EGLImage. LibVA can reuse buffers allocated by Gbm through a file descriptor. It will then wrap it into a drm_intel_bo with drm_intel_bo_gem_create_from_p

[PATCH] intel: make bufmgr_gem shareable from different API

2014-09-11 Thread Chris Wilson
On Thu, Sep 11, 2014 at 04:36:20PM +0100, Lionel Landwerlin wrote: > When using Mesa and LibVA in the same process, one would like to be > able bind buffers from the output of the decoder to a GL texture > through an EGLImage. > > LibVA can reuse buffers allocated by Gbm through a file descriptor.

[PATCH] intel: make bufmgr_gem shareable from different API

2014-09-11 Thread Lionel Landwerlin
When using Mesa and LibVA in the same process, one would like to be able bind buffers from the output of the decoder to a GL texture through an EGLImage. LibVA can reuse buffers allocated by Gbm through a file descriptor. It will then wrap it into a drm_intel_bo with drm_intel_bo_gem_create_from_p

[PATCH] intel: make bufmgr_gem shareable from different API

2014-09-11 Thread Chris Wilson
On Thu, Sep 11, 2014 at 01:21:13PM +0100, Lionel Landwerlin wrote: > On 11/09/14 12:52, Chris Wilson wrote: > >Just use an embedded list rather than array, that would greatly simplify > >the search, cration and deletion. > > I tried to use the embedded list, but from my understanding I need > the

[PATCH] intel: make bufmgr_gem shareable from different API

2014-09-11 Thread Lionel Landwerlin
On 11/09/14 12:52, Chris Wilson wrote: > On Thu, Sep 11, 2014 at 12:33:41PM +0100, Lionel Landwerlin wrote: >> When using Mesa and LibVA in the same process, one would like to be >> able bind buffers from the output of the decoder to a GL texture >> through an EGLImage. >> >> LibVA can reuse buffer

[PATCH] intel: make bufmgr_gem shareable from different API

2014-09-11 Thread Daniel Stone
Hi, On 11 September 2014 12:52, Chris Wilson wrote: > On Thu, Sep 11, 2014 at 12:33:41PM +0100, Lionel Landwerlin wrote: > > When using Mesa and LibVA in the same process, one would like to be > > able bind buffers from the output of the decoder to a GL texture > > through an EGLImage. > > > > L

[PATCH] intel: make bufmgr_gem shareable from different API

2014-09-11 Thread Chris Wilson
On Thu, Sep 11, 2014 at 12:33:41PM +0100, Lionel Landwerlin wrote: > When using Mesa and LibVA in the same process, one would like to be > able bind buffers from the output of the decoder to a GL texture > through an EGLImage. > > LibVA can reuse buffers allocated by Gbm through a file descriptor.

[PATCH] intel: make bufmgr_gem shareable from different API

2014-09-11 Thread Lionel Landwerlin
When using Mesa and LibVA in the same process, one would like to be able bind buffers from the output of the decoder to a GL texture through an EGLImage. LibVA can reuse buffers allocated by Gbm through a file descriptor. It will then wrap it into a drm_intel_bo with drm_intel_bo_gem_create_from_p