OSDN Git Service

radv: Fix sparse BO mapping merging.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 25 Aug 2017 20:18:24 +0000 (22:18 +0200)
committerAndres Gomez <agomez@igalia.com>
Wed, 6 Sep 2017 15:05:10 +0000 (18:05 +0300)
commit72a90be2c8c8274d14f5343b5c093a1f0132d469
treef309ea1a8203fafabd2f5775c75651cbd429e2dd
parentba87ab0543b460f0a4af37df53f1db0c5c8d0bf0
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>
(cherry picked from commit 9b7e663da1d88f398a349e158c27b38a66b73fe3)
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c