From: Kenneth Graunke Date: Fri, 27 May 2016 18:12:45 +0000 (-0700) Subject: glsl: Expose gl_PointSize if OES/EXT_tessellation_point_size is enabled. X-Git-Tag: upstream/17.1.0~7521 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0eaa84e8af850b627345e473bb5a7cc9941cf2b8;p=platform%2Fupstream%2Fmesa.git glsl: Expose gl_PointSize if OES/EXT_tessellation_point_size is enabled. Signed-off-by: Kenneth Graunke Reviewed-by: Ian Romanick --- diff --git a/src/compiler/glsl/builtin_variables.cpp b/src/compiler/glsl/builtin_variables.cpp index 20d1d75..c9d8b1c 100644 --- a/src/compiler/glsl/builtin_variables.cpp +++ b/src/compiler/glsl/builtin_variables.cpp @@ -1263,7 +1263,11 @@ builtin_variable_generator::generate_varyings() if (!state->es_shader || state->stage == MESA_SHADER_VERTEX || (state->stage == MESA_SHADER_GEOMETRY && - state->OES_geometry_point_size_enable)) { + state->OES_geometry_point_size_enable) || + ((state->stage == MESA_SHADER_TESS_CTRL || + state->stage == MESA_SHADER_TESS_EVAL) && + (state->OES_tessellation_point_size_enable || + state->EXT_tessellation_point_size_enable))) { add_varying(VARYING_SLOT_PSIZ, float_t, "gl_PointSize"); } }