Non-zero stream outputs can't be used in fragment shaders.
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 6 Jul 2017 09:19:56 +0000 (11:19 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Sun, 16 Jul 2017 12:53:49 +0000 (08:53 -0400)
commit1f4d3d0067e4e3b9f6c4c0e7e3b203eb7cb00d05
tree993283ea7f93248ebeb6233abc8561146989501c
parentf7014d5d8d3de986bda223fbddc1ed9a4fd3c002
Non-zero stream outputs can't be used in fragment shaders.

According to ARB_gpu_shader5 spec, "Geometry Shader Vertex Streams"
section:

    "The primitives emitted to all vertex streams are passed to the transform
    feedback stage to be captured and written to buffer objects in the manner
    specified by the transform feedback state.  The primitives emitted to all
    streams but stream zero are discarded after transform feedback.
    Primitives emitted to stream zero are passed to subsequent pipeline stages
    for clipping, rasterization, and subsequent fragment processing."

Thus, it is an error trying to use a GS output as FS input that was
emitted through non-zero stream.

Affects:
KHR-GL45.enhanced_layouts.xfb_vertex_streams

Components: OpenGL

VK-GL-CTS issue: 557

Change-Id: I008c929b600905b1f3eb27a05753c8c75bf82ac5
external/openglcts/modules/gl/gl4cEnhancedLayoutsTests.cpp