glsl/lower_precision: split out const lowering
[mesa.git] / src / mesa / main / mtypes.h
index a6af3fbca17eac7ab5cde26d81441ba662d6d549..1df6d34b5d4aef22f77a76a9c27926efae08bf5e 100644 (file)
@@ -3210,6 +3210,13 @@ struct gl_shader_compiler_options
    GLboolean LowerPrecisionInt16;
    GLboolean LowerPrecisionDerivatives;
 
+   /**
+    * This enables lowering of 16b constants.  Some drivers may not
+    * to lower constants to 16b (ie. if the hw can do automatic
+    * narrowing on constant load)
+    */
+   GLboolean LowerPrecisionConstants;
+
    /**
     * This enables 16-bit phis in NIR, 16-bit loop counters, 16-bit indirect
     * arrays, etc.