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 <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34909>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user