Re: [Mesa-dev] [PATCH v3] vl/dri3: use external texture as back buffers(v3)

2016-11-07 Thread Leo Liu
On 11/07/2016 11:31 AM, Nayan Deshmukh wrote: On Mon, Nov 7, 2016 at 8:31 PM, Leo Liu > wrote: On 11/05/2016 02:44 AM, Nayan Deshmukh wrote: Hi Leo, Thanks for the reference patch. There are only a number of

Re: [Mesa-dev] [PATCH v3] vl/dri3: use external texture as back buffers(v3)

2016-11-07 Thread Nayan Deshmukh
On Mon, Nov 7, 2016 at 8:31 PM, Leo Liu wrote: > > > On 11/05/2016 02:44 AM, Nayan Deshmukh wrote: > >> Hi Leo, >> >> Thanks for the reference patch. >> >> There are only a number of output surfaces taking turns as the >> mixer render targets, so we probably can use the

Re: [Mesa-dev] [PATCH v3] vl/dri3: use external texture as back buffers(v3)

2016-11-07 Thread Leo Liu
On 11/05/2016 02:44 AM, Nayan Deshmukh wrote: Hi Leo, Thanks for the reference patch. There are only a number of output surfaces taking turns as the mixer render targets, so we probably can use the same pixmap corresponding to each of output surface texture. The mixer renders to

Re: [Mesa-dev] [PATCH v3] vl/dri3: use external texture as back buffers(v3)

2016-11-05 Thread Nayan Deshmukh
Hi Leo, Thanks for the reference patch. There are only a number of output surfaces taking turns as the mixer render targets, so we probably can use the same pixmap corresponding to each of output surface texture. The mixer renders to a VdpOutputSurface which is provided to it by the

Re: [Mesa-dev] [PATCH v3] vl/dri3: use external texture as back buffers(v3)

2016-11-04 Thread Leo Liu
Hi Nayan, + /* In case of a single gpu we need to get the +* handle and pixmap for the texture that is set +*/ + if (buffer && scrn->output_texture && + !scrn->is_different_gpu) + allocate_new_buffer = true; + >So now the normal case i.e. single gpu case have to

Re: [Mesa-dev] [PATCH v3] vl/dri3: use external texture as back buffers(v3)

2016-11-04 Thread Leo Liu
On 11/04/2016 03:54 PM, Leo Liu wrote: On 11/04/2016 02:45 PM, Nayan Deshmukh wrote: dri3 allows us to send handle of a texture directly to X so this patch allows a state tracker to directly send its texture to X to be used as back buffer and avoids extra copying v2: use clip width/height

Re: [Mesa-dev] [PATCH v3] vl/dri3: use external texture as back buffers(v3)

2016-11-04 Thread Leo Liu
On 11/04/2016 02:45 PM, Nayan Deshmukh wrote: dri3 allows us to send handle of a texture directly to X so this patch allows a state tracker to directly send its texture to X to be used as back buffer and avoids extra copying v2: use clip width/height to display a portion of the surface v3:

[Mesa-dev] [PATCH v3] vl/dri3: use external texture as back buffers(v3)

2016-11-04 Thread Nayan Deshmukh
dri3 allows us to send handle of a texture directly to X so this patch allows a state tracker to directly send its texture to X to be used as back buffer and avoids extra copying v2: use clip width/height to display a portion of the surface v3: remove redundant variables, fix wrapping, rename