Revert "intel: Use the new DRI2 flush invalidate entrypoint to signal frame done."
[mesa.git] / src / mesa / drivers / dri / intel / intel_syncobj.c
index 1286fe929bc150f0d5fa501ebf52344eb38a4715..0d7889d3c258179bf74b6ee4ac28aeddbb79d805 100644 (file)
@@ -114,7 +114,7 @@ static void intel_check_sync(GLcontext *ctx, struct gl_sync_object *s)
 {
    struct intel_sync_object *sync = (struct intel_sync_object *)s;
 
-   if (sync->bo && drm_intel_bo_busy(sync->bo)) {
+   if (sync->bo && !drm_intel_bo_busy(sync->bo)) {
       drm_intel_bo_unreference(sync->bo);
       sync->bo = NULL;
       s->StatusFlag = 1;