mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 00:20:11 +01:00
gfxstream-guest: update offset to correct value
In CoherentMemory::subAllocate function, we should also update offset to the correct values. Test: boot with skiavk enabled and the textures should not be corrupted Reviewed-by: Marcin Radomski <dextero@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33018>
This commit is contained in:
parent
82317d6d24
commit
e6fd2e1613
1 changed files with 1 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ bool CoherentMemory::subAllocate(uint64_t size, uint8_t** ptr, uint64_t& offset)
|
|||
if (!block) return false;
|
||||
|
||||
*ptr = mBaseAddr + block->ofs;
|
||||
offset = block->ofs;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue