mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 11:30:11 +01:00
nir: Add a nir_op_is_vec helper
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4365>
This commit is contained in:
parent
84ab61160a
commit
842338e2f0
1 changed files with 16 additions and 0 deletions
|
|
@ -1054,6 +1054,22 @@ nir_op_vec(unsigned components)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool
|
||||||
|
nir_op_is_vec(nir_op op)
|
||||||
|
{
|
||||||
|
switch (op) {
|
||||||
|
case nir_op_mov:
|
||||||
|
case nir_op_vec2:
|
||||||
|
case nir_op_vec3:
|
||||||
|
case nir_op_vec4:
|
||||||
|
case nir_op_vec8:
|
||||||
|
case nir_op_vec16:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static inline bool
|
static inline bool
|
||||||
nir_is_float_control_signed_zero_inf_nan_preserve(unsigned execution_mode, unsigned bit_size)
|
nir_is_float_control_signed_zero_inf_nan_preserve(unsigned execution_mode, unsigned bit_size)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue