meson: make clz available in OpenCL code

for various math helpers.

the clzll version isn't available since long long is 128-bit for CL.

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35639>
This commit is contained in:
Mary Guillemard 2025-06-17 10:32:30 +02:00 committed by Marge Bot
parent 2c455c2d81
commit e8137404b6

View file

@ -57,6 +57,7 @@ cl_args = [
# Declare supported clang builtins since we don't autodetect for OpenCL
'-DHAVE___BUILTIN_FFS',
'-DHAVE___BUILTIN_CLZ',
]
if with_mesa_ndebug