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:
Bo Hu 2024-12-04 19:15:11 -08:00 committed by Marge Bot
parent 82317d6d24
commit e6fd2e1613

View file

@ -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;
}