projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98f2312
)
winsys/amdgpu: use >= instead of > for VM address alignment
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 21 Nov 2018 22:28:13 +0000
(17:28 -0500)
committer
Marek 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
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
index dd3e8984dac7d2c316724dc8e689027d41db6427..e1b8097132704bcd978c213f15bf0184f546f859 100644
(file)
--- 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,