From df61553070319660bd6a74f1ae6b251700dd17db Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Wed, 2 Jul 2014 12:12:51 -0400 Subject: glsl: add support for AMD_vertex_shader_viewport_index Signed-off-by: Ilia Mirkin Reviewed-by: Kenneth Graunke Reviewed-by: Chris Forbes Tested-by: Tobias Droste --- src/glsl/builtin_variables.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/glsl/builtin_variables.cpp') diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp index 9f9571619ba..34973023fe9 100644 --- a/src/glsl/builtin_variables.cpp +++ b/src/glsl/builtin_variables.cpp @@ -815,6 +815,8 @@ builtin_variable_generator::generate_vs_special_vars() add_system_value(SYSTEM_VALUE_INSTANCE_ID, int_t, "gl_InstanceID"); if (state->AMD_vertex_shader_layer_enable) add_output(VARYING_SLOT_LAYER, int_t, "gl_Layer"); + if (state->AMD_vertex_shader_viewport_index_enable) + add_output(VARYING_SLOT_VIEWPORT, int_t, "gl_ViewportIndex"); if (compatibility) { add_input(VERT_ATTRIB_POS, vec4_t, "gl_Vertex"); add_input(VERT_ATTRIB_NORMAL, vec3_t, "gl_Normal"); -- cgit v1.2.3