winsys/amdgpu: use >= instead of > for VM address alignment
authorMarek Olšák <marek.olsak@amd.com>
Wed, 21 Nov 2018 22:28:13 +0000 (17:28 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 29 Nov 2018 01:20:27 +0000 (20:20 -0500)
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c

index dd3e8984dac7d2c316724dc8e689027d41db6427..e1b8097132704bcd978c213f15bf0184f546f859 100644 (file)
@@ -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,