mesa/src/gallium/frontends/clover
Karol Herbst 36012af17f nir/printf: remove treat_doubles_as_floats
It is broken and clang uses fp32 for float constants if the fp64 extension
isn't enabled anyway. SPIRVs can't use fp64 constants with printf unless
they enable the Float64 cap, which also requires cl_khr_fp64 to be
supported.

So just remove it and rely on clang handling -cl-single-precision-constant
correctly, which at the moment doesn't seem to be the case, but we can
think about that once we plan to support cl_khr_fp64.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26541>
2024-01-18 13:16:13 +01:00
..
api treewide: Use util_is_power_of_two_nonzero{64|_uintptr} when needed 2024-01-11 16:45:57 +00:00
core clover: Rename function align to align_vector to avoid conflict with global align 2023-12-07 02:30:53 +00:00
llvm fix: clover: LLVM 18: s/CodeGenOpt::/CodeGenOptLevel::/ 2023-10-06 16:05:40 +00:00
nir nir/printf: remove treat_doubles_as_floats 2024-01-18 13:16:13 +01:00
spirv clover: fix parameter arguments since recent translator changes. 2023-09-13 04:32:38 +00:00
util clover: std::result_of is deprecated in c++17 and removed in c++20 2021-09-27 18:50:09 +00:00
meson.build clover: Only compile/depend libclspirv and libclnir when using SPIR-V support 2023-09-22 15:29:25 +00:00