From a2a6b06d4846cc0068422259efa4d0f8c9b47ec0 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 21 Nov 2018 17:28:13 -0500 Subject: winsys/amdgpu: use >= instead of > for VM address alignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Christian König Reviewed-by: Bas Nieuwenhuizen --- src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3