[Mesa-dev] [PATCH 1/2] gallium/radeon: add radeon_info::max_alloc_size into the winsys interface
Michel Dänzer
michel at daenzer.net
Fri Jul 1 08:54:34 UTC 2016
On 01.07.2016 08:29, Marek Olšák wrote:
>
> diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
> index c4d28ff..76a125c 100644
> --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
> +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
> @@ -372,6 +372,7 @@ static bool do_winsys_init(struct radeon_drm_winsys *ws)
> }
> ws->info.gart_size = gem_info.gart_size;
> ws->info.vram_size = gem_info.vram_size;
> + ws->info.max_alloc_size = MAX2(ws->info.vram_size, ws->info.gart_size);
The radeon driver in kernels older than 3.17 can't allocate BOs larger
than 256MB.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list