aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/ir3/ir3_nir.h
diff options
context:
space:
mode:
authorBrian Ho <[email protected]>2020-04-01 11:50:55 -0700
committerMarge Bot <[email protected]>2020-04-07 14:13:20 +0000
commit012773be26aafb71ab232a5838d8e5e7dcc3dc55 (patch)
tree7779e0d4d8409a094685dabe6897c4e29be7a7aa /src/freedreno/ir3/ir3_nir.h
parent6eabd6bd51406f729689cce6b3b021c2731c69f9 (diff)
turnip: Configure VPC for geometry shaders
This commit updates tu6_emit_vpc to selectively emit GS-specifc configuration. Most of this is repurposed from fd6_program.c. This also refactors `link_geometry_stages` to ir3_nir_lower_tess.c so it can be shared between fd and tu. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4436>
Diffstat (limited to 'src/freedreno/ir3/ir3_nir.h')
-rw-r--r--src/freedreno/ir3/ir3_nir.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_nir.h b/src/freedreno/ir3/ir3_nir.h
index a42c8822b4a..cebc9e64dd3 100644
--- a/src/freedreno/ir3/ir3_nir.h
+++ b/src/freedreno/ir3/ir3_nir.h
@@ -60,4 +60,8 @@ bool ir3_nir_analyze_ubo_ranges(nir_shader *nir, struct ir3_shader *shader);
nir_ssa_def *
ir3_nir_try_propagate_bit_shift(nir_builder *b, nir_ssa_def *offset, int32_t shift);
+uint32_t ir3_link_geometry_stages(const struct ir3_shader_variant *producer,
+ const struct ir3_shader_variant *consumer,
+ uint32_t *locs);
+
#endif /* IR3_NIR_H_ */