[PATCH libdrm 1/3] amdgpu: Propogate user flags to amdgpu_bo_va_op_raw

Andrey Grodzovsky andrey.grodzovsky at amd.com
Thu Sep 27 19:05:07 UTC 2018


Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky at amd.com>
---
 amdgpu/amdgpu_bo.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c
index c0f42e8..1892345 100644
--- a/amdgpu/amdgpu_bo.c
+++ b/amdgpu/amdgpu_bo.c
@@ -736,7 +736,7 @@ drm_public int amdgpu_bo_va_op(amdgpu_bo_handle bo,
 			       uint64_t offset,
 			       uint64_t size,
 			       uint64_t addr,
-			       uint64_t flags,
+			       uint64_t extra_flags,
 			       uint32_t ops)
 {
 	amdgpu_device_handle dev = bo->dev;
@@ -746,7 +746,8 @@ drm_public int amdgpu_bo_va_op(amdgpu_bo_handle bo,
 	return amdgpu_bo_va_op_raw(dev, bo, offset, size, addr,
 				   AMDGPU_VM_PAGE_READABLE |
 				   AMDGPU_VM_PAGE_WRITEABLE |
-				   AMDGPU_VM_PAGE_EXECUTABLE, ops);
+				   AMDGPU_VM_PAGE_EXECUTABLE |
+				   extra_flags, ops);
 }
 
 drm_public int amdgpu_bo_va_op_raw(amdgpu_device_handle dev,
-- 
2.7.4



More information about the dri-devel mailing list