mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 14:28:18 +02:00
nir: make alu fp_math_ctrl helpers const
No Foz-DB changes. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39641>
This commit is contained in:
parent
f55668bb50
commit
aa78083477
1 changed files with 5 additions and 5 deletions
|
|
@ -1574,31 +1574,31 @@ typedef struct nir_alu_instr {
|
|||
} nir_alu_instr;
|
||||
|
||||
static inline bool
|
||||
nir_alu_instr_is_signed_zero_preserve(nir_alu_instr *alu)
|
||||
nir_alu_instr_is_signed_zero_preserve(const nir_alu_instr *alu)
|
||||
{
|
||||
return alu->fp_math_ctrl & nir_fp_preserve_signed_zero;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
nir_alu_instr_is_inf_preserve(nir_alu_instr *alu)
|
||||
nir_alu_instr_is_inf_preserve(const nir_alu_instr *alu)
|
||||
{
|
||||
return alu->fp_math_ctrl & nir_fp_preserve_inf;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
nir_alu_instr_is_nan_preserve(nir_alu_instr *alu)
|
||||
nir_alu_instr_is_nan_preserve(const nir_alu_instr *alu)
|
||||
{
|
||||
return alu->fp_math_ctrl & nir_fp_preserve_nan;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
nir_alu_instr_is_signed_zero_inf_nan_preserve(nir_alu_instr *alu)
|
||||
nir_alu_instr_is_signed_zero_inf_nan_preserve(const nir_alu_instr *alu)
|
||||
{
|
||||
return alu->fp_math_ctrl & nir_fp_preserve_sz_inf_nan;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
nir_alu_instr_is_exact(nir_alu_instr *alu)
|
||||
nir_alu_instr_is_exact(const nir_alu_instr *alu)
|
||||
{
|
||||
return alu->fp_math_ctrl & nir_fp_exact;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue