[Intel-gfx] [PATCH 2/2] sna: allow the usage of buffer age without enable async swaps
Martin Peres
martin.peres at linux.intel.com
Thu Jul 9 01:26:39 PDT 2015
Signed-off-by: Martin Peres <martin.peres at linux.intel.com>
---
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
More information about the Intel-gfx
mailing list