mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 07:10:09 +01:00
rusticl/spirv: preserve signed zeroes by default
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38327>
(cherry picked from commit 92a4ae0ab2)
This commit is contained in:
parent
e53e1c101d
commit
c67dba9f9f
2 changed files with 4 additions and 4 deletions
|
|
@ -684,7 +684,7 @@
|
||||||
"description": "rusticl/spirv: preserve signed zeroes by default",
|
"description": "rusticl/spirv: preserve signed zeroes by default",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": null,
|
"because_sha": null,
|
||||||
"notes": null
|
"notes": null
|
||||||
|
|
|
||||||
|
|
@ -300,13 +300,13 @@ impl SPIRVBin {
|
||||||
private_data: ptr::from_mut(log).cast(),
|
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 {
|
spirv_to_nir_options {
|
||||||
create_library: library,
|
create_library: library,
|
||||||
environment: nir_spirv_execution_environment::NIR_SPIRV_OPENCL,
|
environment: nir_spirv_execution_environment::NIR_SPIRV_OPENCL,
|
||||||
clc_shader: clc_shader,
|
clc_shader: clc_shader,
|
||||||
float_controls_execution_mode: float_controls::FLOAT_CONTROLS_DENORM_FLUSH_TO_ZERO_FP32
|
float_controls_execution_mode: float_controls,
|
||||||
as u32,
|
|
||||||
|
|
||||||
printf: true,
|
printf: true,
|
||||||
capabilities: caps,
|
capabilities: caps,
|
||||||
constant_addr_format: global_addr_format,
|
constant_addr_format: global_addr_format,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue