[igt-dev] [PATCH i-g-t v30 32/33] lib/intel_aux_pgtable: use aux table offset
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Wed Aug 19 12:33:05 UTC 2020
Previously passsed invalid address lead to generate new address
so cache tree contains invalid address whereas batch contains
former one.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
lib/intel_aux_pgtable.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/intel_aux_pgtable.c b/lib/intel_aux_pgtable.c
index b43a366b..ef6a9fef 100644
--- a/lib/intel_aux_pgtable.c
+++ b/lib/intel_aux_pgtable.c
@@ -610,7 +610,8 @@ gen12_create_aux_pgtable_state(struct intel_bb *ibb,
*pgtable_ptr = intel_bb_offset_reloc(ibb, aux_pgtable_buf->handle,
0, 0,
- pgtable_ptr_offset, -1);
+ pgtable_ptr_offset,
+ aux_pgtable_buf->addr.offset);
intel_bb_ptr_add(ibb, sizeof(*pgtable_ptr));
return pgtable_ptr_offset;
--
2.26.0
More information about the igt-dev
mailing list