diff options
author | Connor Abbott <[email protected]> | 2019-05-10 10:18:12 +0200 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2019-07-08 14:15:06 +0200 |
commit | fd5ed6b9d6ab5e905a10c2033007ca478c33e1af (patch) | |
tree | 305f7923695fbe3580fecaf1725df72dc835d8a8 /src/compiler/nir/nir.h | |
parent | 27f0c3c15ef753bf5eb089c725341790e9693c53 (diff) |
nir: Move st_nir_assign_var_locations() to common code
It isn't really doing anything Gallium-specific, and it's needed for
handling component packing, overlapping, etc.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 8e5102f53d8..3119e656e24 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -3143,6 +3143,11 @@ void nir_compact_varyings(nir_shader *producer, nir_shader *consumer, void nir_link_xfb_varyings(nir_shader *producer, nir_shader *consumer); bool nir_link_opt_varyings(nir_shader *producer, nir_shader *consumer); + +void nir_assign_io_var_locations(struct exec_list *var_list, + unsigned *size, + gl_shader_stage stage); + typedef enum { /* If set, this forces all non-flat fragment shader inputs to be * interpolated as if with the "sample" qualifier. This requires |