As preparation for changing the behavior of LLVMpipe on IBM Z, add a
flag to detect that platform. As it is always known at compile-time, we
do not add it to the struct for cpu flags to avoid inflating that
struct's size.
Signed-off-by: Marius Hillenbrand <mhillen@linux.ibm.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13927>
#ifndef _UTIL_CPU_DETECT_H
#define _UTIL_CPU_DETECT_H
+#include <stdbool.h>
#include "pipe/p_config.h"
#include "util/u_thread.h"
void util_cpu_detect(void);
+static inline bool
+util_cpu_caps_has_zarch(void)
+{
+#if defined(PIPE_ARCH_S390)
+ return true;
+#else
+ return false;
+#endif
+}
+
#ifdef __cplusplus
}