winsys/amdgpu: rework the VM alignment optimizations
authorMarek Olšák <marek.olsak@amd.com>
Mon, 5 Oct 2020 05:05:44 +0000 (01:05 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 9 Oct 2020 23:13:40 +0000 (23:13 +0000)
commit99446b8ceeffcaf033cf9dc33aac273207b721d9
treec01ad848edbf8844187a855548b36fd4d0914efd
parenta4e4644eff4160450b2a6648f3c160aa06256158
winsys/amdgpu: rework the VM alignment optimizations

- don't increase the alignment past 2 MB
- apply the second tweak to older chips too

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