iris/compute: Wait on compute batch when mapping

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Jordan Justen
2018-09-18 15:04:14 -07:00
committed by Kenneth Graunke
parent ea416d0b5d
commit fcd0364857
+5
View File
@@ -810,6 +810,11 @@ iris_transfer_map(struct pipe_context *ctx,
iris_batch_flush(&ice->render_batch);
}
if (!(usage & PIPE_TRANSFER_UNSYNCHRONIZED) &&
iris_batch_references(&ice->compute_batch, res->bo)) {
iris_batch_flush(&ice->compute_batch);
}
if ((usage & PIPE_TRANSFER_DONTBLOCK) && iris_bo_busy(res->bo))
return NULL;