summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-11-21 17:28:13 -0500
committerMarek Olšák <[email protected]>2018-11-28 20:20:27 -0500
commita2a6b06d4846cc0068422259efa4d0f8c9b47ec0 (patch)
treeef3e2265716910cb15a21b389ebf7070dfdbb693
parent98f2312b4faf22cb545a7769f230f1713b4f3de1 (diff)
winsys/amdgpu: use >= instead of > for VM address alignment
Reviewed-by: Christian König <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_bo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
index dd3e8984dac..e1b80971327 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
@@ -492,7 +492,7 @@ static struct amdgpu_winsys_bo *amdgpu_create_bo(struct amdgpu_winsys *ws,
unsigned vm_alignment = alignment;
/* Increase the VM alignment for faster address translation. */
- if (size > ws->info.pte_fragment_size)
+ if (size >= ws->info.pte_fragment_size)
vm_alignment = MAX2(vm_alignment, ws->info.pte_fragment_size);
r = amdgpu_va_range_alloc(ws->dev, amdgpu_gpu_va_range_general,