glsl: always enable transform feedback mode when xfb_stride defined
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 14 Mar 2016 00:16:55 +0000 (11:16 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 31 Mar 2016 01:52:34 +0000 (12:52 +1100)
commitb77c9098782a36cb811891b2bcb572eb61e608ac
treec2a222c7099a542d46ffe91e8acfb5a5a47e192f
parentc95e92b14d69c114b79d941c7e8902a0ea62c287
glsl: always enable transform feedback mode when xfb_stride defined

This enables in shader defined transform feedback mode even if the
only place xfb_stride is defined is on the global out.

We don't worry about xfb_buffer since Issue 22 c) in the spec says:

   "If the shader has an "xfb_buffer" qualifier identifying a buffer,
    but doesn't declare "xfb_offset" on anything associated with it,
    what happens?

    ...

    variables not qualified with "xfb_offset" are not captured, which
    makes the associated "xfb_buffer" qualifier irrelevant."

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/link_varyings.cpp