From: Marek Olšák Date: Wed, 21 Nov 2018 22:28:13 +0000 (-0500) Subject: winsys/amdgpu: use >= instead of > for VM address alignment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2a6b06d4846cc0068422259efa4d0f8c9b47ec0;p=mesa.git winsys/amdgpu: use >= instead of > for VM address alignment Reviewed-by: Christian König Reviewed-by: Bas Nieuwenhuizen --- 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,