Kenneth Graunke writes:
> If EXEC_OBJECT_PINNED is set, we don't want to emit any relocations.
> We simply want to add the BO to the validation list, and possibly mark
> it as writeable. The new brw_use_pinned_bo() interface does just that.
>
> To avoid having to make
Quoting Kenneth Graunke (2018-05-04 02:12:37)
> @@ -933,6 +945,14 @@ emit_reloc(struct intel_batchbuffer *batch,
> {
> assert(target != NULL);
>
> + if (target->kflags & EXEC_OBJECT_PINNED) {
> + brw_use_pinned_bo(batch, target, reloc_flags & RELOC_WRITE);
> + return
If EXEC_OBJECT_PINNED is set, we don't want to emit any relocations.
We simply want to add the BO to the validation list, and possibly mark
it as writeable. The new brw_use_pinned_bo() interface does just that.
To avoid having to make every caller consider both the relocation and
softpin cases,