Mesa (master): glsl: Expose gl_PointSize if OES/ EXT_tessellation_point_size is enabled.
Kenneth Graunke
kwg at kemper.freedesktop.org
Mon Aug 8 18:07:52 UTC 2016
Module: Mesa
Branch: master
Commit: 0eaa84e8af850b627345e473bb5a7cc9941cf2b8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0eaa84e8af850b627345e473bb5a7cc9941cf2b8
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Fri May 27 11:12:45 2016 -0700
glsl: Expose gl_PointSize if OES/EXT_tessellation_point_size is enabled.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/compiler/glsl/builtin_variables.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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");
}
}
More information about the mesa-commit
mailing list