diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-08-25 22:18:24 +0200 |
---|---|---|
committer | Andres Gomez <[email protected]> | 2017-09-06 18:05:10 +0300 |
commit | 72a90be2c8c8274d14f5343b5c093a1f0132d469 (patch) | |
tree | f309ea1a8203fafabd2f5775c75651cbd429e2dd /src/amd | |
parent | ba87ab0543b460f0a4af37df53f1db0c5c8d0bf0 (diff) |
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 <[email protected]>
(cherry picked from commit 9b7e663da1d88f398a349e158c27b38a66b73fe3)
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c index 7b679450cbc..b8f0be1639e 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c @@ -149,6 +149,7 @@ radv_amdgpu_winsys_bo_virtual_bind(struct radeon_winsys_bo *_parent, if (parent->ranges[first].bo == bo && (!bo || offset - bo_offset == parent->ranges[first].offset - parent->ranges[first].bo_offset)) { size += offset - parent->ranges[first].offset; offset = parent->ranges[first].offset; + bo_offset = parent->ranges[first].bo_offset; remove_first = true; } |