gbm: request correct version of the DRI2_FENCE extension
authorLucas Stach <l.stach@pengutronix.de>
Tue, 22 Nov 2016 10:12:35 +0000 (11:12 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 22 Nov 2016 15:56:44 +0000 (15:56 +0000)
There is no version 2 of the DRI2_FENCE extension. So only a request
for version 1 has a chance to succeed.

Fixes: 74b1969d717f (gbm: wire up fence extension)
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gbm/backends/dri/gbm_dri.c

index 96a1f8755512d7247afb32248f925f170ff2a819..45cb42a8625f31325191b69f0a25efdeaaeaf52d 100644 (file)
@@ -245,7 +245,7 @@ struct dri_extension_match {
 static struct dri_extension_match dri_core_extensions[] = {
    { __DRI2_FLUSH, 1, offsetof(struct gbm_dri_device, flush) },
    { __DRI_IMAGE, 1, offsetof(struct gbm_dri_device, image) },
-   { __DRI2_FENCE, 2, offsetof(struct gbm_dri_device, fence), 1 },
+   { __DRI2_FENCE, 1, offsetof(struct gbm_dri_device, fence), 1 },
    { __DRI2_INTEROP, 1, offsetof(struct gbm_dri_device, interop), 1 },
    { NULL, 0, 0 }
 };