[Mesa-dev] [PATCH 1/2] gallium/radeon: add radeon_info::max_alloc_size into the winsys interface

Vedran Miletić vedran at miletic.net
Fri Jul 1 11:42:13 UTC 2016


On 07/01/2016 10:54 AM, Michel Dänzer wrote:
> 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.
>
>

Indeed. You should ensure DRM >= 2.40.

Regards,
Vedran

-- 
Vedran Miletić
vedran.miletic.net


More information about the mesa-dev mailing list