mesa/src/microsoft
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
..
ci ci/msvc: Rename vs2019 to msvc 2023-12-24 11:46:43 +00:00
clc nir/printf: remove treat_doubles_as_floats 2024-01-18 13:16:13 +01:00
compiler nir: remove redundant passes from nir_opt_if() 2024-01-03 20:48:05 +00:00
spirv_to_dxil treewide: replace calls to nir_opt_trivial_continues() with nir_opt_loop() 2024-01-03 20:48:04 +00:00
vulkan dzn: Remove #if D3D12_SDK_VERSION blocks now that 611 is required 2023-12-22 13:35:35 +00:00
meson.build microsoft: Whitespace change to trigger CI 2023-12-15 00:39:10 +00:00