summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/glcpp-parse.y
diff options
context:
space:
mode:
authorTodd Previte <[email protected]>2013-05-20 08:41:18 -0700
committerMatt Turner <[email protected]>2013-06-14 11:25:48 -0700
commitcf7f424e18485edff381ad687201c6914bfc7ea5 (patch)
tree517cc7a3c3da92000ab1ea4181b5f637f1f5bced /src/glsl/glcpp/glcpp-parse.y
parentbfa8d21759c5f2b5b0885c696842167bd4c64fee (diff)
mesa: Add infrastructure for ARB_shading_language_420pack.
v2 [mattst88] - Split infrastructure into separate patch. - Add preprocessor #define. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/glcpp/glcpp-parse.y')
-rw-r--r--src/glsl/glcpp/glcpp-parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index 6cb5009e861..ff5bdfe5db5 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -1242,6 +1242,9 @@ glcpp_parser_create (const struct gl_extensions *extensions, int api)
if (extensions->AMD_vertex_shader_layer)
add_builtin_define(parser, "GL_AMD_vertex_shader_layer", 1);
+
+ if (extensions->ARB_shading_language_420pack)
+ add_builtin_define(parser, "GL_ARB_shading_language_420pack", 1);
}
}