ilo: rework winsys bo reloc functions
[mesa.git] / src / gallium / drivers / ilo / ilo_query.c
index 5154ddbdefc9200928e82965bb045546181362b3..59a6b0686c305d494bd0c1486241f38c8c407966 100644 (file)
@@ -168,7 +168,7 @@ ilo_get_query_result(struct pipe_context *pipe, struct pipe_query *query,
       return false;
 
    if (q->bo) {
-      if (intel_bo_references(ilo->cp->bo, q->bo))
+      if (intel_bo_has_reloc(ilo->cp->bo, q->bo))
          ilo_cp_flush(ilo->cp, "syncing for queries");
 
       if (!wait && intel_bo_is_busy(q->bo))