diff options
author | Ilia Mirkin <[email protected]> | 2014-07-02 12:12:51 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-07-02 21:59:38 -0400 |
commit | df61553070319660bd6a74f1ae6b251700dd17db (patch) | |
tree | 918e452ef44b1361830d59f6de0a5e7ec8e2baa6 /src/glsl/builtin_variables.cpp | |
parent | e593953b50883541e7dc137e59a53253a2f76c23 (diff) |
glsl: add support for AMD_vertex_shader_viewport_index
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Tested-by: Tobias Droste <[email protected]>
Diffstat (limited to 'src/glsl/builtin_variables.cpp')
-rw-r--r-- | src/glsl/builtin_variables.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |