radv: Fix sparse BO mapping merging.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 25 Aug 2017 20:18:24 +0000 (22:18 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 25 Aug 2017 20:47:49 +0000 (22:47 +0200)
commit9b7e663da1d88f398a349e158c27b38a66b73fe3
treeaf0f7d304937b20e767edaa966fc9a6f0c742189
parentfba0e078695847bf1e4fdc9e6a44099bf901f4cf
radv: Fix sparse BO mapping merging.

If we merge a mapping with the mapping before it, we also need
to not only change the offset, but also the bo offset.

Fixes: 715df30a4e2 "radv/amdgpu: Add winsys implementation of virtual buffers."
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c