Module: Mesa
Branch: master
Commit: a2a6b06d4846cc0068422259efa4d0f8c9b47ec0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2a6b06d4846cc0068422259efa4d0f8c9b47ec0

Author: Marek Olšák <[email protected]>
Date:   Wed Nov 21 17:28:13 2018 -0500

winsys/amdgpu: use >= instead of > for VM address alignment

Reviewed-by: Christian König <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>

---

 src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c 
b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
index dd3e8984da..e1b8097132 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,

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to