iris: actually pin the instruction cache buffers

This commit is contained in:
Kenneth Graunke
2018-01-30 02:16:34 -08:00
parent bda9a77b47
commit db15993cfd
4 changed files with 17 additions and 2 deletions

View File

@@ -659,6 +659,13 @@ emit_reloc(struct iris_batch *batch,
return entry->offset + target_offset;
}
void
iris_use_pinned_bo(struct iris_batch *batch, struct iris_bo *bo)
{
assert(bo->kflags & EXEC_OBJECT_PINNED);
add_exec_bo(batch, bo);
}
uint64_t
iris_batch_reloc(struct iris_batch *batch, uint32_t batch_offset,
struct iris_bo *target, uint32_t target_offset,