summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/amdgpu
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-12-31 21:36:37 +0100
committerMarek Olšák <[email protected]>2018-02-17 04:52:17 +0100
commit48ecacfefadb898e3957bba8c8a9cc7ec1ff8249 (patch)
tree76c246ca8992ab6f9792bcc4aafa4ea6b98aa3dc /src/gallium/winsys/amdgpu
parentc2da45be86f728c817704f5857728b0cdff6a2ec (diff)
winsys/amdgpu: enable 32-bit VM allocations
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/winsys/amdgpu')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_bo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
index ba48cade133..19f6fedf7c0 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
@@ -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;