Re: [Mesa-dev] [PATCH] vl/dri3: remove the wait before getting back buffer

2019-03-25 Thread Michel Dänzer
On 2019-03-21 8:10 p.m., Liu, Leo wrote: > On 2019-03-20 1:56 p.m., Michel Dänzer wrote: >> On 2019-03-20 4:42 p.m., Liu, Leo wrote: >>> The wait here is unnecessary since we got a pool of back buffers, >>> and the wait for swap buffer will happen before the present pixmap, >>> at the same time

Re: [Mesa-dev] [PATCH] vl/dri3: remove the wait before getting back buffer

2019-03-21 Thread Liu, Leo
On 2019-03-20 1:56 p.m., Michel Dänzer wrote: > On 2019-03-20 4:42 p.m., Liu, Leo wrote: >> The wait here is unnecessary since we got a pool of back buffers, >> and the wait for swap buffer will happen before the present pixmap, >> at the same time the previous back buffer will be put back to

Re: [Mesa-dev] [PATCH] vl/dri3: remove the wait before getting back buffer

2019-03-21 Thread Liu, Leo
On 2019-03-21 4:15 a.m., Ernst Sjöstrand wrote: > What's the expected change in behavior? The change will make vl_dri3_screen_texture_from_drawable() call not to hold the pipeline. Because of the multiple of back buffers,  we can get the texture of the ongoing presented back buffer, and no

Re: [Mesa-dev] [PATCH] vl/dri3: remove the wait before getting back buffer

2019-03-21 Thread Michel Dänzer
On 2019-03-20 4:42 p.m., Liu, Leo wrote: > The wait here is unnecessary since we got a pool of back buffers, > and the wait for swap buffer will happen before the present pixmap, > at the same time the previous back buffer will be put back to pool > for reuse after the check for PresentIdleNotify

Re: [Mesa-dev] [PATCH] vl/dri3: remove the wait before getting back buffer

2019-03-21 Thread Ernst Sjöstrand
What's the expected change in behavior? Does it fix any bugs? Regards //Ernst Den ons 20 mars 2019 kl 16:42 skrev Liu, Leo : > > The wait here is unnecessary since we got a pool of back buffers, > and the wait for swap buffer will happen before the present pixmap, > at the same time the previous

[Mesa-dev] [PATCH] vl/dri3: remove the wait before getting back buffer

2019-03-20 Thread Liu, Leo
The wait here is unnecessary since we got a pool of back buffers, and the wait for swap buffer will happen before the present pixmap, at the same time the previous back buffer will be put back to pool for reuse after the check for PresentIdleNotify event Signed-off-by: Leo Liu ---