summaryrefslogtreecommitdiffstats
path: root/src/glsl/linker.cpp
diff options
context:
space:
mode:
authorFabian Bieler <[email protected]>2014-03-10 17:55:36 +0100
committerMarek Olšák <[email protected]>2015-07-23 00:59:27 +0200
commit73a9a1539a85ae8fe22e11b4064105d588597736 (patch)
tree74aa1f405af4f0163138272519f8666a63e01144 /src/glsl/linker.cpp
parent54f29502972cdd33302e69e029c8d07fb31b7bdf (diff)
glsl: lower gl_TessLevel* from float[n] to vecn.
Similar to gl_ClipDistance -> gl_ClipDistanceMESA v2: - renamed is_mesa_var to lowered_builtin_array_variable - moved LowerTessLevel into gl_constants - cosmetic changes in lower_tess_level.cpp Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r--src/glsl/linker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index 498e8d5bf7c..b9e443acb1d 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -3324,6 +3324,10 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog)
lower_clip_distance(prog->_LinkedShaders[i]);
}
+ if (ctx->Const.LowerTessLevel) {
+ lower_tess_level(prog->_LinkedShaders[i]);
+ }
+
while (do_common_optimization(prog->_LinkedShaders[i]->ir, true, false,
&ctx->Const.ShaderCompilerOptions[i],
ctx->Const.NativeIntegers))