summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_nir.h
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2018-09-21 13:26:03 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2018-09-25 09:16:31 -0700
commit3cf07361ac42cbddef8d1efad5749a8dd09f3079 (patch)
tree899b1676641cad96dde380cc8a0a25cec2b815f0 /src/intel/compiler/brw_nir.h
parent47a6f98e15b367a64cbf994f24c711aa42f7fcf6 (diff)
intel/compiler: Export TCS passthrough creation
Move create_passthrough_tcs() from i965 so can be used in other contexts. Acked-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_nir.h')
-rw-r--r--src/intel/compiler/brw_nir.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_nir.h b/src/intel/compiler/brw_nir.h
index 06f0e8690e4..2ff8c72b94f 100644
--- a/src/intel/compiler/brw_nir.h
+++ b/src/intel/compiler/brw_nir.h
@@ -164,6 +164,11 @@ nir_shader *brw_nir_optimize(nir_shader *nir,
bool is_scalar,
bool allow_copies);
+nir_shader *brw_nir_create_passthrough_tcs(void *mem_ctx,
+ const struct brw_compiler *compiler,
+ const nir_shader_compiler_options *options,
+ const struct brw_tcs_prog_key *key);
+
#define BRW_NIR_FRAG_OUTPUT_INDEX_SHIFT 0
#define BRW_NIR_FRAG_OUTPUT_INDEX_MASK INTEL_MASK(0, 0)
#define BRW_NIR_FRAG_OUTPUT_LOCATION_SHIFT 1