mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 22:00:26 +01:00
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:
parent
063d35b829
commit
d2ac44dfde
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue