Re: [Mesa-dev] [PATCH 07/10] i965: Prepare batchbuffer module for softpin support.

2018-05-08 Thread Scott D Phillips
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

Re: [Mesa-dev] [PATCH 07/10] i965: Prepare batchbuffer module for softpin support.

2018-05-04 Thread Chris Wilson
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

[Mesa-dev] [PATCH 07/10] i965: Prepare batchbuffer module for softpin support.

2018-05-03 Thread Kenneth Graunke
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,