[PATCH libdrm] tests/amdgpu: add missing config.h include
Eric Engestrom
eric.engestrom at imgtec.com
Mon Jan 29 15:20:08 UTC 2018
On Monday, 2018-01-29 14:56:04 +0000, Emil Velikov wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> 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 at gmail.com>
> Cc: Andrey Grodzovsky <Andrey.Grodzovsky at 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 at collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
And my apologies for being a bit too trigger-happy when blaming
autotools :(
> ---
> tests/amdgpu/vm_tests.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tests/amdgpu/vm_tests.c b/tests/amdgpu/vm_tests.c
> index 4b0121ff..0379a79d 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"
> --
> 2.16.0
>
More information about the dri-devel
mailing list