1 // Updated using config.h.meson 2 #define _GNU_SOURCE 3 #define VIRGL_RENDERER_UNSTABLE_APIS 1 4 #define HAVE___BUILTIN_BSWAP32 1 5 #define HAVE___BUILTIN_BSWAP64 1 6 #define HAVE___BUILTIN_CLZ 1 7 #define HAVE___BUILTIN_CLZLL 1 8 #define HAVE___BUILTIN_EXPECT 1 9 #define HAVE___BUILTIN_FFS 1 10 #define HAVE___BUILTIN_FFSLL 1 11 #define HAVE___BUILTIN_POPCOUNT 1 12 #define HAVE___BUILTIN_POPCOUNTLL 1 13 #define HAVE___BUILTIN_TYPES_COMPATIBLE_P 1 14 #define HAVE___BUILTIN_UNREACHABLE 1 15 #define HAVE_FUNC_ATTRIBUTE_CONST 1 16 #define HAVE_FUNC_ATTRIBUTE_FLATTEN 1 17 #define HAVE_FUNC_ATTRIBUTE_FORMAT 1 18 #define HAVE_FUNC_ATTRIBUTE_MALLOC 1 19 #define HAVE_FUNC_ATTRIBUTE_NORETURN 1 20 #define HAVE_FUNC_ATTRIBUTE_PACKED 1 21 #define HAVE_FUNC_ATTRIBUTE_PURE 1 22 #define HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL 1 23 #define HAVE_FUNC_ATTRIBUTE_UNUSED 1 24 #define HAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT 1 25 #define HAVE_FUNC_ATTRIBUTE_WEAK 1 26 // The glibc host toolchain lacks support for memfd, but bionic supports it, 27 // so this define is enabled only for 'android:' in Android.bp 28 //#define HAVE_MEMFD_CREATE 1 29 #define HAVE_STRTOK_R 1 30 #define HAVE_TIMESPEC_GET 1 31 #define HAVE_SYS_UIO_H 1 32 #define HAVE_PTHREAD 1 33 34 // Currently must be disabled because ANDROID code in virglrenderer 35 // is broken. This should be fixed upstream. 36 //#define HAVE_PTHREAD_SETAFFINITY 1 37 38 #define HAVE_EPOXY_EGL_H 1 39 40 // No X11/GLX support 41 //#define HAVE_EPOXY_GLX_H 1 42 43 // Performance impacting 44 //#define CHECK_GL_ERRORS 1 45 46 // Avoid dependency on minigbm 47 //#define ENABLE_MINIGBM_ALLOCATION 1 48 49 // Disable experimental venus support (for now) 50 //#define ENABLE_VENUS 1 51 //#define ENABLE_VENUS_VALIDATE 1 52 53 // Disable direct DRM support - only used by freedreno 54 //#define ENABLE_DRM 1 55 //#define ENABLE_DRM_MSM 1 56 57 // Disable render server (for now) 58 //#define ENABLE_RENDER_SERVER 1 59 //#define ENABLE_RENDER_SERVER_WORKER_PROCESS 1 60 //#define ENABLE_RENDER_SERVER_WORKER_THREAD 1 61 //#define ENABLE_RENDER_SERVER_WORKER_MINIJAIL 1 62 //#define RENDER_SERVER_EXEC_PATH 1 63 64 #define HAVE_EVENTFD_H 1 65 #define HAVE_DLFCN_H 1 66 67 // Disable tracing - performance impacting 68 //#define ENABLE_TRACING 1 69 70 // Android only supports little endian on target and host 71 #define UTIL_ARCH_LITTLE_ENDIAN 1 72 #define UTIL_ARCH_BIG_ENDIAN 0 73 74 // Architecture-specific CPU detection code 75 //#define PIPE_ARCH_X86 1 76 77 // Keep simple_mtx.h happy 78 #define HAVE_LINUX_FUTEX_H 1 79