android: st/mesa: fix building error due to sched_getcpu()
authorMauro Rossi <issor.oruam@gmail.com>
Fri, 30 Nov 2018 23:42:40 +0000 (00:42 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Sat, 1 Dec 2018 09:15:58 +0000 (10:15 +0100)
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@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_draw.c

index 5910ffa5bdaeb92e48e36e2ab8d6812c91f1a0ec..9600b1569d534ab6a225486a1ae83a9acf09408c 100644 (file)
@@ -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