[PATCH 2/4] amdgpu: set va flag with input parameter
Junwei Zhang
Jerry.Zhang at amd.com
Thu Mar 16 03:56:39 UTC 2017
Signed-off-by: Junwei Zhang <Jerry.Zhang at amd.com>
---
amdgpu/amdgpu_bo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c
index 6189e5a..800b77a 100644
--- a/amdgpu/amdgpu_bo.c
+++ b/amdgpu/amdgpu_bo.c
@@ -941,7 +941,7 @@ int amdgpu_bo_va_op(amdgpu_bo_handle bo,
memset(&va, 0, sizeof(va));
va.handle = bo->handle;
va.operation = ops;
- va.flags = AMDGPU_VM_PAGE_READABLE |
+ va.flags = flags | AMDGPU_VM_PAGE_READABLE |
AMDGPU_VM_PAGE_WRITEABLE |
AMDGPU_VM_PAGE_EXECUTABLE;
va.va_address = addr;
--
1.9.1
More information about the amd-gfx
mailing list