mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
rusticl: move unmap out of debug_assert_eq statement
Fixes: da4de8d7e3 ("rusticl: add support for coarse-grain buffer SVM")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35286>
This commit is contained in:
parent
931ec3e954
commit
9b28067b59
1 changed files with 2 additions and 1 deletions
|
|
@ -64,7 +64,8 @@ impl Drop for SVMAlloc {
|
|||
if let Some(vma) = self.vma {
|
||||
let address = vma.get() as usize as *mut c_void;
|
||||
unsafe {
|
||||
debug_assert_eq!(0, munmap(address, self.size()));
|
||||
let ret = munmap(address, self.size());
|
||||
debug_assert_eq!(0, ret);
|
||||
}
|
||||
|
||||
Platform::get()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue