On 02/09/16 10:17 AM, Michel Dänzer wrote:
> On 02/09/16 12:58 AM, Leo Liu wrote:
>> On 09/01/2016 11:54 AM, Nayan Deshmukh wrote:
>>>
>>> I saw the code in dri3_glx.c and I could somewhat relate some basic
>>> code structure to the vl_winsys_dri3.c. But I am new to this and not aware 
>>> of the
>>> terminology that you used about the buffers. Could you please explain what 
>>> needs
>>> to be done in more detail or point me to where I can read about it.
>>
>> I believe it's from loader_dri3_helper.c with "is_different_gpu"
>> condition true, that will include back buffer and front buffer case.
>> you could try only back buffer case for now.
> 
> From a high level, PRIME mainly affects presentation, not so much the
> video decoding / rendering. The important thing is that the buffer used
> for presentation via the Present extension is linear, not tiled. I'm not
> sure whether it makes more sense to allocate a separate linear buffer
> for this purpose, as is done for GLX, or for the vl code to make the
> corresponding back (or front?) buffer linear in the first place.

A separate linear buffer is probably better, actually, since it will
also be pinned to system memory while it's being shared with another GPU.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to