radv: Align large buffers to the fragment size.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 26 Nov 2018 02:28:05 +0000 (03:28 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 27 Nov 2018 21:17:42 +0000 (22:17 +0100)
commit6569644bb6e1f58fd739d83bd4dc42e6af6b6097
tree992479e82a10c7f075f37340f04b13b40ba11b7a
parent76945e4140833128759747dcd9cd335e423ebd25
radv: Align large buffers to the fragment size.

Improves performance in Talos by about 15% (and significant improvements
in RotR and possibly other but did not bench with final patch) on
kernel 4.19 and earlier.

On 4.20+ a similar effect comes from

433ca054949a "drm/amdgpu: try allocating VRAM as power of two"

v2: Do not impact the alignment of the physical memory.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
CC: <mesa-stable@lists.freedesktop.org>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c