diff options
author | Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> | 2016-05-08 22:44:02 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-05-14 08:27:29 +1000 |
commit | eb18fea707fd7859e712ee7279e9acc68e177ceb (patch) | |
tree | e928ace24b11d6aeae7b9aad2576e38f088a7e67 /src/compiler/glsl/link_varyings.cpp | |
parent | f2a2e08e01b9bfe64a7259f46a0f502d486c8dad (diff) | |
download | external_mesa3d-eb18fea707fd7859e712ee7279e9acc68e177ceb.zip external_mesa3d-eb18fea707fd7859e712ee7279e9acc68e177ceb.tar.gz external_mesa3d-eb18fea707fd7859e712ee7279e9acc68e177ceb.tar.bz2 |
mesa/main: Add support for GL_ARB_cull_distance (v2)
airlied:
v2: rename LowerClipDistance to LowerCombinedClipCullDistnace.
I don't think we want any other behaviour with any current hw.
Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/compiler/glsl/link_varyings.cpp')
-rw-r--r-- | src/compiler/glsl/link_varyings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp index 34e82c7..2555cc9 100644 --- a/src/compiler/glsl/link_varyings.cpp +++ b/src/compiler/glsl/link_varyings.cpp @@ -627,7 +627,7 @@ tfeedback_decl::init(struct gl_context *ctx, const void *mem_ctx, * class must behave specially to account for the fact that gl_ClipDistance * is converted from a float[8] to a vec4[2]. */ - if (ctx->Const.ShaderCompilerOptions[MESA_SHADER_VERTEX].LowerClipDistance && + if (ctx->Const.ShaderCompilerOptions[MESA_SHADER_VERTEX].LowerCombinedClipCullDistance && strcmp(this->var_name, "gl_ClipDistance") == 0) { this->lowered_builtin_array_variable = clip_distance; } |