From d2ac44dfde0fc695b243e6e85546b610e1eba776 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 28 Apr 2025 12:05:53 -0400 Subject: [PATCH] meson: make ffs available in OpenCL code for u_foreach_bit. the ffsll version isn't available since long long is 128-bit for CL. Signed-off-by: Alyssa Rosenzweig Part-of: --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index cd802abeca5..0a3bc42a3a1 100644 --- a/meson.build +++ b/meson.build @@ -53,7 +53,10 @@ cl_args = [ # Set the OpenCL standard to CL 2.0, enabling everything at a frontend. # Drivers may not actually support everything but that's ok. '-cl-std=cl2.0', - '-D__OPENCL_VERSION__=200' + '-D__OPENCL_VERSION__=200', + + # Declare supported clang builtins since we don't autodetect for OpenCL + '-DHAVE___BUILTIN_FFS', ] if with_mesa_ndebug