aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Grodzovsky2017-11-02 09:29:55 -0500
committerChristian König2017-11-03 07:07:30 -0500
commitf3091bac21a963f1a3d8ce5db85c0f2b4acbeb49 (patch)
tree7ce9b56720642fe3f92a5f004ad75139dff75f8b /tests
parentb617f059ad45517bded1f2d8c8e3a52b60e80bd7 (diff)
downloadexternal-libgbm-f3091bac21a963f1a3d8ce5db85c0f2b4acbeb49.tar.gz
external-libgbm-f3091bac21a963f1a3d8ce5db85c0f2b4acbeb49.tar.xz
external-libgbm-f3091bac21a963f1a3d8ce5db85c0f2b4acbeb49.zip
amdgpu: Fix wrappers for AMDGPU_VM IOCTL.
Rmove amdgpu_context_handle from the interface and use amdgpu_device_handle instead. Uupdate VMID reservation test accordingly. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/amdgpu/vm_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/amdgpu/vm_tests.c b/tests/amdgpu/vm_tests.c
index cbfafe97..5f183107 100644
--- a/tests/amdgpu/vm_tests.c
+++ b/tests/amdgpu/vm_tests.c
@@ -88,7 +88,7 @@ static void amdgpu_vmid_reserve_test(void)
88 CU_ASSERT_EQUAL(r, 0); 88 CU_ASSERT_EQUAL(r, 0);
89 89
90 flags = 0; 90 flags = 0;
91 r = amdgpu_vm_reserve_vmid(context_handle, flags); 91 r = amdgpu_vm_reserve_vmid(device_handle, flags);
92 CU_ASSERT_EQUAL(r, 0); 92 CU_ASSERT_EQUAL(r, 0);
93 93
94 94
@@ -142,7 +142,7 @@ static void amdgpu_vmid_reserve_test(void)
142 CU_ASSERT_EQUAL(r, 0); 142 CU_ASSERT_EQUAL(r, 0);
143 143
144 flags = 0; 144 flags = 0;
145 r = amdgpu_vm_unreserve_vmid(context_handle, flags); 145 r = amdgpu_vm_unreserve_vmid(device_handle, flags);
146 CU_ASSERT_EQUAL(r, 0); 146 CU_ASSERT_EQUAL(r, 0);
147 147
148 148