OSDN Git Service

amdgpu/test: Allow BO mapping flags to be passed in tests
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 27 Sep 2018 17:10:55 +0000 (13:10 -0400)
committerAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 10 Oct 2018 18:38:19 +0000 (14:38 -0400)
commiteabc4cb35c0d3a60dbff79f1a78eebb928b0f10d
treee9f610a1b4c4a9039f4817b0a0811220a2c7f62e
parentf8392583418aef5e27bfed9989aeb601e20cc96d
amdgpu/test: Allow BO mapping flags to be passed in tests

v2:
Call amdgpu_bo_va_op_raw directly in amdgpu_bo_alloc_and_map_raw
Move amdgpu_bo_alloc_and_map_raw into C file to avoid including
unistd.h in amdgpu_test.h

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
tests/amdgpu/amdgpu_test.h
tests/amdgpu/basic_tests.c