mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
intel/aux_map: fix fallback unmapping range on failure
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 7c6faa1efe ("intel/aux_map: introduce ref count of L1 entries")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27057>
This commit is contained in:
parent
33b77ec774
commit
ff6041afdf
1 changed files with 1 additions and 1 deletions
|
|
@ -728,7 +728,7 @@ intel_aux_map_add_mapping(struct intel_aux_map_context *ctx, uint64_t main_addre
|
|||
if (!success && (main_inc_addr - main_address) > 0) {
|
||||
/* If the mapping failed, remove the mapped portion. */
|
||||
remove_mapping_locked(ctx, main_address,
|
||||
main_size_B - (main_inc_addr - main_address),
|
||||
main_inc_addr - main_address,
|
||||
false /* reset_refcount */, &state_changed);
|
||||
}
|
||||
pthread_mutex_unlock(&ctx->mutex);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue