[Mesa-dev] [RFC 1/1] glx: port dri2GetBuffers/dri2GetBuffersWithFormat to XCB

Michel Dänzer michel at daenzer.net
Thu Apr 27 00:55:19 UTC 2017


On 26/04/17 07:11 PM, Gregory Hainaut wrote:
> On 4/26/17, Michel Dänzer <michel at daenzer.net> wrote:
>> On 26/04/17 05:07 PM, Gregory Hainaut wrote:
>>>
>>> Note: those dri2* functions are typically called by gallium/mesa state
>>> tracker to handle new backbuffer allocation. When the old backbuffer was
>>> previously invalidated due to vsync.
>>
>> FWIW, DRI2 buffer invalidation isn't directly related to vsync.
> Ok.
> 
> What happen is that I received DRI2_InvalidateBuffers event instead of
> DRI2_BufferSwapComplete when I enabled vsync on my application.

Right, but buffers can also be invalidated under other circumstances,
e.g. when the window size changes.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the mesa-dev mailing list