diff options
author | Marek Olšák <[email protected]> | 2018-11-26 17:06:20 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-11-28 20:20:27 -0500 |
commit | 6b554d863f05f77ed8fe0ba99e157b3558c5abc2 (patch) | |
tree | 172d38c346719d85b9e554a86b248d8476a30dfc /src/gallium/winsys/amdgpu/drm | |
parent | f737fe00a047ae1ae9ec4e15a4ea8b578389f2f6 (diff) |
winsys/amdgpu,radeon: pass vm_alignment to buffer_from_handle
Acked-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/winsys/amdgpu/drm')
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 3 |
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 36041133d0d..e32e23361f4 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c @@ -1397,6 +1397,7 @@ no_slab: static struct pb_buffer *amdgpu_bo_from_handle(struct radeon_winsys *rws, struct winsys_handle *whandle, + unsigned vm_alignment, unsigned *stride, unsigned *offset) { @@ -1454,7 +1455,7 @@ static struct pb_buffer *amdgpu_bo_from_handle(struct radeon_winsys *rws, goto error; r = amdgpu_va_range_alloc(ws->dev, amdgpu_gpu_va_range_general, - result.alloc_size, 1 << 20, 0, &va, &va_handle, + result.alloc_size, vm_alignment, 0, &va, &va_handle, AMDGPU_VA_RANGE_HIGH); if (r) goto error; |