Signed-off-by: Martin Peres <martin.peres@xxxxxxxxxxxxxxx> --- src/sna/sna_dri2.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index 47bc046..1f34ebe 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -3605,11 +3605,14 @@ bool sna_dri2_open(struct sna *sna, ScreenPtr screen) } #endif +#if DRI2INFOREC_VERSION >= 10 + DBG(("%s: enabled buffer age\n", __FUNCTION__)); + info.version = 10; + info.bufferAge = 1; #if USE_ASYNC_SWAP - DBG(("%s: enabled async swap and buffer age\n", __FUNCTION__)); - info.version = 10; - info.scheduleSwap0 = 1; - info.bufferAge = 1; + DBG(("%s: enabled async swap\n", __FUNCTION__)); + info.scheduleSwap0 = 1; +#endif #endif return DRI2ScreenInit(screen, &info); -- 2.4.5 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx