Signed-off-by: Andrey Grodzovsky <andrey.grodzov...@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

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to