summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_constant_expressions.h
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsálvez <[email protected]>2018-06-20 09:11:14 +0200
committerAndres Gomez <[email protected]>2019-09-17 23:39:18 +0300
commitf7d73db353e5b6416c98a8c05c585ea79b3eada2 (patch)
tree955c1f81406e37115b6aaa019a52b66298b36267 /src/compiler/nir/nir_constant_expressions.h
parent45668a8be112878a2d34a6ba11684b0ff60df4ed (diff)
nir: add support for flushing to zero denorm constants
v2: - Refactor conditions and shared function (Connor). - Move code to nir_eval_const_opcode() (Connor). - Don't flush to zero on fquantize2f16 From Vulkan spec, VK_KHR_shader_float_controls section: "3) Do denorm and rounding mode controls apply to OpSpecConstantOp? RESOLVED: Yes, except when the opcode is OpQuantizeToF16." v3: - Fix bit size (Connor). - Fix execution mode on nir_loop_analize (Connor). v4: - Adapt after API changes to nir_eval_const_opcode (Andres). v5: - Simplify constant_denorm_flush_to_zero (Caio). v6: - Adapt after API changes and to use the new constant constructors (Andres). - Replace MAYBE_UNUSED with UNUSED as the first is going away (Andres). v7: - Adapt to newly added calls (Andres). - Simplified the auxiliary to flush denorms to zero (Caio). - Updated to renamed supported capabilities member (Andres). Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]> Signed-off-by: Andres Gomez <[email protected]> Reviewed-by: Connor Abbott <[email protected]> [v4] Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_constant_expressions.h')
-rw-r--r--src/compiler/nir/nir_constant_expressions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_constant_expressions.h b/src/compiler/nir/nir_constant_expressions.h
index 087663f7480..6450d5c3d03 100644
--- a/src/compiler/nir/nir_constant_expressions.h
+++ b/src/compiler/nir/nir_constant_expressions.h
@@ -32,6 +32,7 @@
void nir_eval_const_opcode(nir_op op, nir_const_value *dest,
unsigned num_components, unsigned bit_size,
- nir_const_value **src);
+ nir_const_value **src,
+ unsigned float_controls_execution_mode);
#endif /* NIR_CONSTANT_EXPRESSIONS_H */