[RFC v2 06/12] glamor: Initialize DMA sync fences

Louis-Francis Ratté-Boulianne lfrb at collabora.com
Wed Sep 27 05:19:57 UTC 2017


Enable support for DMA fences in Glamor backend.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
---
 glamor/glamor_sync.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/glamor/glamor_sync.c b/glamor/glamor_sync.c
index 907e0c613..58a0a36d5 100644
--- a/glamor/glamor_sync.c
+++ b/glamor/glamor_sync.c
@@ -22,6 +22,7 @@
 
 
 #include "glamor_priv.h"
+#include "misyncdma.h"
 #include "misyncshm.h"
 #include "misyncstr.h"
 
@@ -102,6 +103,9 @@ glamor_sync_init(ScreenPtr screen)
 		return FALSE;
 #endif
 
+	if (!miSyncDmaScreenInit(screen))
+	    return FALSE;
+
 	screen_funcs = miSyncGetScreenFuncs(screen);
 	glamor->saved_procs.sync_screen_funcs.CreateFence = screen_funcs->CreateFence;
 	screen_funcs->CreateFence = glamor_sync_create_fence;
-- 
2.13.0



More information about the xorg-devel mailing list