+ xfixes_query =
+ xcb_xfixes_query_version_reply(dri2_dpy->conn,
+ xfixes_query_cookie, &error);
+ if (xfixes_query == NULL || error != NULL ||
+ xfixes_query->major_version < 2) {
+ _eglLog(_EGL_WARNING, "DRI3: failed to query xfixes version");
+ free(error);
+ free(xfixes_query);
+ return EGL_FALSE;
+ }
+ free(xfixes_query);
+