Skip to content
Snippets Groups Projects
Commit d3db644f authored by Karol Herbst's avatar Karol Herbst :crab: Committed by Eric Engestrom
Browse files

rusticl/memory: Fix memory unmaps after rework

An application could map and unmap a host ptr allocation multiple times,
but because how the refcounting works, we might never ended up syncing the
written data to the mapped region.

This moves the refcounting out of the event processing.

Fixes: 7b22bc61 ("rusticl/memory: complete rework on how mapping is implemented")
Part-of: <mesa/mesa!30528>
(cherry picked from commit 1fa288b2)
parent 442b1b53
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment