glsl: Allow gl_InvocationID and gl_Layer with GL_OES_geometry_shader
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 23 May 2016 21:34:24 +0000 (14:34 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Aug 2016 22:03:14 +0000 (15:03 -0700)
commit3a0ae7b55c4c38b9d0a37aa2a741da18c33f49fe
tree68dd864a7a20c8fa637dbce053a029ab3b0b5c53
parent1a72fbf9e6743368dc8e7664adf095af8ec5b6d8
glsl: Allow gl_InvocationID and gl_Layer with GL_OES_geometry_shader

Fixes

dEQP-GLES31.functional.geometry_shading.layered.fragment_layer_2d_array
dEQP-GLES31.functional.geometry_shading.layered.fragment_layer_2d_multisample_array
dEQP-GLES31.functional.geometry_shading.layered.fragment_layer_3d
dEQP-GLES31.functional.geometry_shading.layered.fragment_layer_cubemap

v2: Don't enable gl_ViewportIndex in GLSL ES 3.20.  Noticed by Ilia.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/builtin_variables.cpp