glsl: add a shader_trinary_minmax predicate
authorMaxence Le Doré <maxence.ledore@gmail.com>
Thu, 2 Jan 2014 23:09:49 +0000 (00:09 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 6 Jan 2014 22:28:06 +0000 (14:28 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtin_functions.cpp

index 840a6c9a27c31d8bf33f51c6aa21c5ffa5c344a7..18cdb2437f2feb0b9a51146e737453d0db95dcb0 100644 (file)
@@ -334,6 +334,12 @@ shader_atomic_counters(const _mesa_glsl_parse_state *state)
    return state->ARB_shader_atomic_counters_enable;
 }
 
+static bool
+shader_trinary_minmax(const _mesa_glsl_parse_state *state)
+{
+   return state->AMD_shader_trinary_minmax_enable;
+}
+
 /** @} */
 
 /******************************************************************************/