mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 00:50:36 +02:00
nir: document signed zero, inf, nan preserve flags
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39103>
This commit is contained in:
parent
9d027fc870
commit
b70294b91f
1 changed files with 19 additions and 1 deletions
|
|
@ -1500,11 +1500,29 @@ nir_op_is_selection(nir_op op)
|
|||
* to this enum in the future.
|
||||
*/
|
||||
typedef enum {
|
||||
/**
|
||||
* If not set, any -0.0 or +0.0 output can have either sign,
|
||||
* and any zero input can be treated as having opposite sign.
|
||||
*/
|
||||
nir_fp_preserve_signed_zero = BITFIELD_BIT(0),
|
||||
|
||||
/**
|
||||
* If not set, the output value is undefined if
|
||||
* it or any input is -Inf or +Inf.
|
||||
*/
|
||||
nir_fp_preserve_inf = BITFIELD_BIT(1),
|
||||
|
||||
/**
|
||||
* If not set, the output value is undefined if
|
||||
* it or any input is a NaN.
|
||||
*/
|
||||
nir_fp_preserve_nan = BITFIELD_BIT(2),
|
||||
|
||||
nir_fp_preserve_sz_inf_nan = BITFIELD_MASK(3),
|
||||
|
||||
nir_fp_preserve_sz_inf_nan = nir_fp_preserve_signed_zero |
|
||||
nir_fp_preserve_inf |
|
||||
nir_fp_preserve_nan,
|
||||
|
||||
nir_fp_fast_math = 0,
|
||||
nir_fp_no_fast_math = BITFIELD_MASK(3),
|
||||
} nir_fp_math_control;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue