gallium/radeon: add and use radeon_info::max_alloc_size (v2)
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Jun 2016 22:17:36 +0000 (00:17 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 4 Jul 2016 22:47:13 +0000 (00:47 +0200)
commit8a4ace4a47a07323997da5c2dbc865a32df52451
tree199241d82bf4465dbfb73074465ec406166540e6
parent027ad71b57a0bec882c604027dc83f42eb2eb54c
gallium/radeon: add and use radeon_info::max_alloc_size (v2)

v2: - squashed the patches
    - use INT_MAX
    - clamp max_const_buffer_size
    - check the DRM version in radeon

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Vedran Miletić <vedran@miletic.net>
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c