winsys/amdgpu: reduce max_alloc_size based on GTT limits
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 19 Feb 2017 09:42:57 +0000 (10:42 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 21 Feb 2017 09:43:38 +0000 (10:43 +0100)
commit550125e1e73e2441989da11495057a20dd9dad44
tree41c92b0eb90e0e496b90a1d78487cf86a5d49837
parent8cff852ae2481245a81854073e366892eb199963
winsys/amdgpu: reduce max_alloc_size based on GTT limits

Allocating huge buffers in VRAM is not a problem, but when those buffers
start being migrated, the kernel runs into errors because it cannot split
those buffer up for moving through GTT.

This should fix intermittent failures of
GL45-CTS.texture_buffer.texture_buffer_max_size

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c