aboutsummaryrefslogtreecommitdiff
path: root/glslang/MachineIndependent/Initialize.cpp
diff options
context:
space:
mode:
authorJohn Kessenich <cepheus@frii.com>2013-12-18 18:47:12 +0000
committerJohn Kessenich <cepheus@frii.com>2013-12-18 18:47:12 +0000
commite8fe7b81d75a015bb85f4c45f7a4119420d4beef (patch)
tree47a454858cf11c858369c3fb8ccf873e36d0f09f /glslang/MachineIndependent/Initialize.cpp
parent7c908d2543eced651a2f6e3f5fb26f2efcf557f9 (diff)
downloadglslang-e8fe7b81d75a015bb85f4c45f7a4119420d4beef.tar.gz
Allow tessellation shaders to work on versions back to 150. Also combined all the tessellation tests into a single run.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24569 e7fa87d3-cd2b-0410-9028-fcbf551c1848
Diffstat (limited to 'glslang/MachineIndependent/Initialize.cpp')
-rw-r--r--glslang/MachineIndependent/Initialize.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/glslang/MachineIndependent/Initialize.cpp b/glslang/MachineIndependent/Initialize.cpp
index ac576f22..a421c0eb 100644
--- a/glslang/MachineIndependent/Initialize.cpp
+++ b/glslang/MachineIndependent/Initialize.cpp
@@ -811,7 +811,7 @@ void TBuiltIns::initialize(int version, EProfile profile)
//
//============================================================================
- if (version >= 400)
+ if (version >= 150)
stageBuiltins[EShLangTessControl].append(
"void barrier();"
);
@@ -1255,7 +1255,7 @@ void TBuiltIns::initialize(int version, EProfile profile)
//
//============================================================================
- if (version >= 400) {
+ if (version >= 150) {
// Note: "in gl_PerVertex {...} gl_in[gl_MaxPatchVertices];" is declared in initialize() below,
// as it depends on the resource sizing of gl_MaxPatchVertices.
@@ -1293,7 +1293,7 @@ void TBuiltIns::initialize(int version, EProfile profile)
//
//============================================================================
- if (version >= 400) {
+ if (version >= 150) {
// Note: "in gl_PerVertex {...} gl_in[gl_MaxPatchVertices];" is declared in initialize() below,
// as it depends on the resource sizing of gl_MaxPatchVertices.
@@ -2001,7 +2001,7 @@ void TBuiltIns::initialize(const TBuiltInResource &resources, int version, EProf
}
// tessellation
- if (version >= 400) {
+ if (version >= 150) {
snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlInputComponents = %d;", resources.maxTessControlInputComponents);
s.append(builtInConstant);
snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlOutputComponents = %d;", resources.maxTessControlOutputComponents);