glsl: do not call link_xfb_stride_layout_qualifiers() for fragment shaders
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 22 Jun 2017 10:47:57 +0000 (12:47 +0200)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Mon, 26 Jun 2017 10:00:22 +0000 (12:00 +0200)
commit860919a3b237386cba5b2951ae520bf6734fd17e
treef589654eac5b2b165aa55a7476038a2209c0b183
parentabc7b110b6f6dbd00db3633a68cc836170465d91
glsl: do not call link_xfb_stride_layout_qualifiers() for fragment shaders

xfb only applies to the latest stage before the fragment shader, so
there is no need to invoke it in the fragment shader.

Fixes:
KHR-GL45.enhanced_layouts.xfb_stride_of_empty_list
KHR-GL45.enhanced_layouts.xfb_stride_of_empty_list_and_api

v2: do reset only if shaders provide an explicit stride

v3: do not call link_xfb_stride_layout_qualifiers() for fragment shaders
(Timothy)

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
src/compiler/glsl/linker.cpp