diff options
author | Timothy Arceri <[email protected]> | 2017-09-12 17:30:53 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-09-26 22:37:02 +1000 |
commit | 348cf74792a394aae1efd541192d4a3c219584bb (patch) | |
tree | 101e884fa612977ed40edb1b8262feacbc9bcd4c /src/mesa/drivers/dri/i965/brw_program.h | |
parent | 45ef10c06a3010a0710f9db3e980fde545157b6a (diff) |
i965: create a brw_shader_gather_info() helper
This will help us call gather info at a later point and allow us
to do some linking in nir.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_program.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_program.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.h b/src/mesa/drivers/dri/i965/brw_program.h index e62b7d366c8..c52193c691c 100644 --- a/src/mesa/drivers/dri/i965/brw_program.h +++ b/src/mesa/drivers/dri/i965/brw_program.h @@ -25,6 +25,7 @@ #define BRW_PROGRAM_H #include "compiler/brw_compiler.h" +#include "nir.h" #ifdef __cplusplus extern "C" { @@ -38,6 +39,8 @@ struct nir_shader *brw_create_nir(struct brw_context *brw, gl_shader_stage stage, bool is_scalar); +void brw_shader_gather_info(nir_shader *nir, struct gl_program *prog); + void brw_setup_tex_for_precompile(struct brw_context *brw, struct brw_sampler_prog_key_data *tex, struct gl_program *prog); |