ilo: make ilo_cp based on ilo_builder
[mesa.git] / src / gallium / drivers / ilo / ilo_query.c
index 72fc1c70a70c1eaf5e1647eab1c3934072ff2021..c789397d12c49371ee8c195291eca33cc3f296d5 100644 (file)
@@ -185,7 +185,7 @@ ilo_get_query_result(struct pipe_context *pipe, struct pipe_query *query,
       return false;
 
    if (q->bo) {
-      if (intel_bo_has_reloc(ilo->cp->bo, q->bo))
+      if (ilo_builder_has_reloc(&ilo->cp->builder, q->bo))
          ilo_cp_flush(ilo->cp, "syncing for queries");
 
       if (!wait && intel_bo_is_busy(q->bo))