radeonsi: modify algorithm of skipping holes of sparse bo
authorJulia Zhang <julia.zhang@amd.com>
Mon, 7 Aug 2023 03:07:41 +0000 (11:07 +0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Aug 2023 15:42:20 +0000 (15:42 +0000)
commit9557aa8822cfc6bc155ad63aef769f04922f6c8a
tree39118af113c067a09d945cf43ebd2eb71a90ab82
parente259f4050d096014fe240f5d7f73d1b23b5f33b8
radeonsi: modify algorithm of skipping holes of sparse bo

Modify current algorithm of skipping holes of sparse bo to cover the
following using situations:
1. The whole sparse buffer is uncommitted.
2. More than one page that in the tail of sparse buffer are uncommitted.

Signed-off-by: Julia Zhang <julia.zhang@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24535>
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c