mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
anv: Drop unnecessary intel_canonical_address() calls around bo->offset
bo->offset is set as canonical address no need to do it over again. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23977>
This commit is contained in:
parent
27e20c8726
commit
59aa49494c
1 changed files with 2 additions and 5 deletions
|
|
@ -1564,8 +1564,7 @@ anv_device_alloc_bo(struct anv_device *device,
|
|||
|
||||
if (new_bo._ccs_size > 0) {
|
||||
assert(device->info->has_aux_map);
|
||||
intel_aux_map_add_mapping(device->aux_map_ctx,
|
||||
intel_canonical_address(new_bo.offset),
|
||||
intel_aux_map_add_mapping(device->aux_map_ctx, new_bo.offset,
|
||||
intel_canonical_address(new_bo.offset + new_bo.size),
|
||||
new_bo.size, 0 /* format_bits */);
|
||||
}
|
||||
|
|
@ -1937,9 +1936,7 @@ anv_device_release_bo(struct anv_device *device,
|
|||
assert(device->physical->has_implicit_ccs);
|
||||
assert(device->info->has_aux_map);
|
||||
assert(bo->has_implicit_ccs);
|
||||
intel_aux_map_unmap_range(device->aux_map_ctx,
|
||||
intel_canonical_address(bo->offset),
|
||||
bo->size);
|
||||
intel_aux_map_unmap_range(device->aux_map_ctx, bo->offset, bo->size);
|
||||
}
|
||||
|
||||
/* Memset the BO just in case. The refcount being zero should be enough to
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue