nir/spirv: Array lengths are constants not literals
[mesa.git] / src / glsl / ir_constant_expression.cpp
index 309b6b72b5beb6fb7bf1eee472b79a75db34bd11..ef7058516133aae479382c6070cee1b8d1c8b157 100644 (file)
 #include <math.h>
 #include "main/core.h" /* for MAX2, MIN2, CLAMP */
 #include "util/rounding.h" /* for _mesa_roundeven */
+#include "util/half_float.h"
 #include "ir.h"
 #include "glsl_types.h"
 #include "program/hash_table.h"
 
-#if defined(__SUNPRO_CC) && !defined(isnormal)
-#include <ieeefp.h>
-static int isnormal(double x)
-{
-   return fpclass(x) == FP_NORMAL;
-}
-#endif
-
 static float
 dot_f(ir_constant *op0, ir_constant *op1)
 {