glsl: add helper to process xfb qualifiers during linking
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 24 Feb 2016 05:27:03 +0000 (16:27 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 31 Mar 2016 01:51:21 +0000 (12:51 +1100)
commit0822517936d473f4889b07606e131e1dc3199644
treef9eb129a04d63c741faf73b18d2098d72fae6adf
parent707fd3972f3c2e16c710cd7ce819d0c5439c28fd
glsl: add helper to process xfb qualifiers during linking

This function checks for any xfb_* qualifiers which will enable
transform feedback mode and cause any API defined xfb varyings
to be ignored.

It also counts the number of varyings that have a xfb_offset
qualifier and finally it calls the create_xfb_varying_names()
helper to generate the names of varyings to be caputured.

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