gallium/radeon: Fix losing holes when allocating virtual address space.
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 26 Apr 2012 09:44:11 +0000 (11:44 +0200)
committerMichel Dänzer <michel@daenzer.net>
Thu, 16 Aug 2012 09:58:23 +0000 (11:58 +0200)
commitf5fe81daea622f8f043edc19fb61ba367b6958aa
tree9baf9eea82ed9ec4ce1ea3192c3af5774d2c3623
parent206d07625c9fd69c7d00a8722bd7390c5215bfe2
gallium/radeon: Fix losing holes when allocating virtual address space.

If a hole exactly matches the allocated size plus alignment, we would fail to
preserve the alignment as a hole. This would result in never being able to use
the alignment area for an allocation again.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/winsys/radeon/drm/radeon_drm_bo.c