Commit b592e0f8 authored by Lionel Landwerlin's avatar Lionel Landwerlin
Browse files

anv: fix explicit address canonicalization



anv_vma_alloc() returns a canonicalized address so we have to be
consistent with explicit addresses. Those are likely to come out of
the vma heaps and are not canonicalized.
Signed-off-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 03450e9c ("anv: Add an explicit_address parameter to anv_device_alloc_bo")
parent 485ec761
Pipeline #150232 waiting for manual action with stages
......@@ -1683,7 +1683,7 @@ anv_device_alloc_bo(struct anv_device *device,
if (alloc_flags & ANV_BO_ALLOC_FIXED_ADDRESS) {
new_bo.has_fixed_address = true;
new_bo.offset = explicit_address;
new_bo.offset = gen_canonical_address(explicit_address);
} else if (new_bo.flags & EXEC_OBJECT_PINNED) {
new_bo.offset = anv_vma_alloc(device, new_bo.size + new_bo._ccs_size,
align, alloc_flags, explicit_address);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment