rusticl/spirv: preserve signed zeroes by default

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38327>
This commit is contained in:
Karol Herbst
2025-11-09 00:30:06 +01:00
committed by Marge Bot
parent df344f12cc
commit 92a4ae0ab2
@@ -303,13 +303,13 @@ impl SPIRVBin {
private_data: ptr::from_mut(log).cast(),
});
let float_controls = float_controls::FLOAT_CONTROLS_DENORM_FLUSH_TO_ZERO_FP32 as u32
| float_controls::FLOAT_CONTROLS_SIGNED_ZERO_PRESERVE as u32;
spirv_to_nir_options {
create_library: library,
environment: nir_spirv_execution_environment::NIR_SPIRV_OPENCL,
clc_shader: clc_shader,
float_controls_execution_mode: float_controls::FLOAT_CONTROLS_DENORM_FLUSH_TO_ZERO_FP32
as u32,
float_controls_execution_mode: float_controls,
printf: true,
capabilities: caps,
constant_addr_format: global_addr_format,