{
assert(bo->bufmgr == batch->command.bo->bufmgr);
- if (bo == batch->ice->workaround_bo)
- writable = false;
-
struct drm_i915_gem_exec_object2 *existing_entry =
find_validation_entry(batch, bo);
{
assert(target != NULL);
+ if (target == batch->ice->workaround_bo)
+ reloc_flags &= ~RELOC_WRITE;
+
bool writable = reloc_flags & RELOC_WRITE;
struct drm_i915_gem_exec_object2 *entry =
crocus_use_bo(batch, batch->command.bo, false);
+ /* Always add workaround_bo which contains a driver identifier to be
+ * recorded in error states.
+ */
+ crocus_use_bo(batch, batch->ice->workaround_bo, false);
+
recreate_growing_buffer(batch, &batch->state,
"state buffer",
STATE_SZ);