iris: add identifier BO
[mesa.git] / src / gallium / drivers / iris / iris_batch.c
index c23e281bdce6f5888f55d6a290bcb163cb6220ef..fee7b0e514785205d4cf8f0d048963506cd76380 100644 (file)
@@ -398,6 +398,11 @@ iris_batch_reset(struct iris_batch *batch)
 
    iris_cache_sets_clear(batch);
 
+   /* Always add the workaround BO, it contains a driver identifier at the
+    * beginning quite helpful to debug error states.
+    */
+   iris_use_pinned_bo(batch, screen->workaround_bo, false);
+
    iris_batch_maybe_noop(batch);
 }