winsys/amdgpu: enable 32-bit VM allocations
authorMarek Olšák <marek.olsak@amd.com>
Sun, 31 Dec 2017 20:36:37 +0000 (21:36 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 17 Feb 2018 03:52:17 +0000 (04:52 +0100)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c

index ba48cade133dadfd54e11893a48d3f6b55b32262..19f6fedf7c0470e10a56ccc0d3ec9f23f64187cb 100644 (file)
@@ -437,7 +437,8 @@ static struct amdgpu_winsys_bo *amdgpu_create_bo(struct amdgpu_winsys *ws,
    if (size > ws->info.pte_fragment_size)
           alignment = MAX2(alignment, ws->info.pte_fragment_size);
    r = amdgpu_va_range_alloc(ws->dev, amdgpu_gpu_va_range_general,
-                             size + va_gap_size, alignment, 0, &va, &va_handle, 0);
+                             size + va_gap_size, alignment, 0, &va, &va_handle,
+                             flags & RADEON_FLAG_32BIT ? AMDGPU_VA_RANGE_32_BIT : 0);
    if (r)
       goto error_va_alloc;