st/dri: Use fence extension in drisw.c
authorGurchetan Singh <gurchetansingh@chromium.org>
Tue, 23 May 2017 00:34:32 +0000 (17:34 -0700)
committerChad Versace <chadversary@chromium.org>
Fri, 2 Jun 2017 19:33:42 +0000 (12:33 -0700)
This is desirable for synchronization in virtual machines.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/state_trackers/dri/drisw.c

index b85a73c57d2fe35eb812ea447d9f031504b77053..8fbfa9eceaea2c8b6068016e62a48d857210f1ac 100644 (file)
@@ -46,6 +46,7 @@
 #include "dri_screen.h"
 #include "dri_context.h"
 #include "dri_drawable.h"
+#include "dri_extensions.h"
 #include "dri_query_renderer.h"
 
 DEBUG_GET_ONCE_BOOL_OPTION(swrast_no_present, "SWRAST_NO_PRESENT", FALSE);
@@ -369,6 +370,7 @@ static const __DRIextension *drisw_screen_extensions[] = {
    &driTexBufferExtension.base,
    &dri2RendererQueryExtension.base,
    &dri2ConfigQueryExtension.base,
+   &dri2FenceExtension.base,
    NULL
 };