radv: add support for using addrlib max alignment

Graphics / Mesa 3D Graphics Library / Mesa - Dave Airlie [redhat.com] - 9 July 2017 17:17 EDT

Rather than using 64k, use what addrlib returns as the base alignment for vulkan allocations.

edf2acb radv: add support for using addrlib max alignment.
src/amd/common/ac_gpu_info.h | 1 +
src/amd/common/ac_surface.c | 10 +++++++++-
src/amd/common/ac_surface.h | 3 ++-
src/amd/vulkan/radv_device.c | 2 +-
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c | 2 +-
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 2 +-
6 files changed, 15 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share