[Mesa-dev] [PATCH] gallium/u_tests: fix ifdef for sync_file fences

Marek Olšák maraeo at gmail.com
Tue Oct 3 16:25:16 UTC 2017


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Tue, Oct 3, 2017 at 5:34 PM, George Kyriazis
<george.kyriazis at intel.com> wrote:
> include libsync.h only when libdrm is compiled in
> ---
>  src/gallium/auxiliary/util/u_tests.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/auxiliary/util/u_tests.c b/src/gallium/auxiliary/util/u_tests.c
> index 2e931c0..3cc79af 100644
> --- a/src/gallium/auxiliary/util/u_tests.c
> +++ b/src/gallium/auxiliary/util/u_tests.c
> @@ -490,7 +490,7 @@ null_fragment_shader(struct pipe_context *ctx)
>     util_report_result(qresult.u64 == 2);
>  }
>
> -#ifdef PIPE_OS_LINUX
> +#if defined(PIPE_OS_LINUX) && defined(HAVE_LIBDRM)
>  #include <libsync.h>
>  #else
>  #define sync_merge(str, fd1, fd2) (-1)
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list