[Mesa-dev] [PATCH] android: st/mesa: fix building error due to sched_getcpu()

Marek Olšák maraeo at gmail.com
Sat Dec 1 04:51:33 UTC 2018


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

Marek

On Fri, Nov 30, 2018 at 7:03 PM Mauro Rossi <issor.oruam at gmail.com> wrote:

> Android has cpufeatures library but pinning of threads is not supported
> PIPE_OS_LINUX code path causes build error due to sched_getcpu()
> unavailable
> thus we need to avoid setting HAVE_SCHED_GETCPU for Android
>
> Fixes: 48f2160 ("st/mesa: regularly re-pin driver threads to the CCX where
> the app thread is")
> Signed-off-by: Mauro Rossi <issor.oruam at gmail.com>
> ---
>  src/mesa/state_tracker/st_draw.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_draw.c
> b/src/mesa/state_tracker/st_draw.c
> index 5910ffa5bd..9600b1569d 100644
> --- a/src/mesa/state_tracker/st_draw.c
> +++ b/src/mesa/state_tracker/st_draw.c
> @@ -67,7 +67,7 @@
>  #include "draw/draw_context.h"
>  #include "cso_cache/cso_context.h"
>
> -#ifdef PIPE_OS_LINUX
> +#if defined(PIPE_OS_LINUX) && !defined(ANDROID)
>  #include <sched.h>
>  #define HAVE_SCHED_GETCPU 1
>  #else
> --
> 2.19.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181130/a14af998/attachment.html>


More information about the mesa-dev mailing list