diff options
author | Timothy Arceri <[email protected]> | 2017-09-07 23:27:59 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-09-26 22:37:02 +1000 |
commit | 45ef10c06a3010a0710f9db3e980fde545157b6a (patch) | |
tree | b5d5e7321db61ba77960c19aa55d54beabad3da0 /src/compiler/nir/nir.h | |
parent | 3529f8213ff566d788b7984536abf359fcd89524 (diff) |
nir: add some helpers for doing linking
The initial helpers add support for removing unused varyings between
stages.
V2:
- Moved the io mask helper function into this file rather than
nir.h so it's not used elsewhere considering it doesn't handle
all corner cases.
- Use bitmask rather than hash table to handle tcs outputs (Ken)
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index fab2110f619..bb5aba605a1 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2417,6 +2417,9 @@ void nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint); void nir_assign_var_locations(struct exec_list *var_list, unsigned *size, int (*type_size)(const struct glsl_type *)); +/* Some helpers to do very simple linking */ +bool nir_remove_unused_varyings(nir_shader *producer, nir_shader *consumer); + typedef enum { /* If set, this forces all non-flat fragment shader inputs to be * interpolated as if with the "sample" qualifier. This requires |