diff options
author | Emil Velikov <emil.velikov@collabora.com> | 2018-01-29 14:51:31 +0000 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2018-01-31 15:57:58 +0000 |
commit | 10e85a8b7f28e80f5184919b2448ade18c19ca21 (patch) | |
tree | 874489069d112982fec0f8f2b0c78942cd85e1ce | |
parent | ba17673eed0383cc41ed49e8c9841b6b819fdfd3 (diff) |
tests/amdgpu: add missing config.h include
Otherwise we'll end up without the macros set during configure stage.
And effectively error out in sanity tests such as the mmap static
assert.
To reproduce, do a multilib build - 32bit build on 64bit machine.
Cc: Fabio Pedretti <pedretti.fabio@gmail.com>
Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Fixes: 33dcc29f7cc ("amdgpu: Add VMID reservation per GPU context test.")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104819
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
-rw-r--r-- | tests/amdgpu/vm_tests.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/amdgpu/vm_tests.c b/tests/amdgpu/vm_tests.c index 7b6dc5d6..502a9405 100644 --- a/tests/amdgpu/vm_tests.c +++ b/tests/amdgpu/vm_tests.c @@ -21,6 +21,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "CUnit/Basic.h" #include "amdgpu_test.h" |