aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/link_varyings.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-02-24 16:27:03 +1100
committerTimothy Arceri <[email protected]>2016-03-31 12:51:21 +1100
commit0822517936d473f4889b07606e131e1dc3199644 (patch)
treef9eb129a04d63c741faf73b18d2098d72fae6adf /src/compiler/glsl/link_varyings.h
parent707fd3972f3c2e16c710cd7ce819d0c5439c28fd (diff)
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 <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_varyings.h')
-rw-r--r--src/compiler/glsl/link_varyings.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/link_varyings.h b/src/compiler/glsl/link_varyings.h
index b2812614ecc..8d504f6f0dc 100644
--- a/src/compiler/glsl/link_varyings.h
+++ b/src/compiler/glsl/link_varyings.h
@@ -268,6 +268,11 @@ parse_tfeedback_decls(struct gl_context *ctx, struct gl_shader_program *prog,
const void *mem_ctx, unsigned num_names,
char **varying_names, tfeedback_decl *decls);
+bool
+process_xfb_layout_qualifiers(void *mem_ctx, const gl_shader *sh,
+ unsigned *num_tfeedback_decls,
+ char ***varying_names);
+
void
remove_unused_shader_inputs_and_outputs(bool is_separate_shader_object,
gl_shader *sh,