summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_program.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-12-21 21:34:11 -0500
committerRob Clark <[email protected]>2016-05-17 14:22:46 -0400
commit1e93b0caa10d9d9090eaa3bd517a5144930f28a4 (patch)
treed382c6e6defaff4dba20623d468134bbc69507b2 /src/mesa/state_tracker/st_program.h
parent2bbb140be3cbc8e8428f21083b21abd7246ddc6e (diff)
mesa/st: add support for NIR as possible driver IR
Signed-off-by: Rob Clark <[email protected]> Acked-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_program.h')
-rw-r--r--src/mesa/state_tracker/st_program.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_program.h b/src/mesa/state_tracker/st_program.h
index 7c90fd74e14..e6db1069025 100644
--- a/src/mesa/state_tracker/st_program.h
+++ b/src/mesa/state_tracker/st_program.h
@@ -108,6 +108,9 @@ struct st_fragment_program
struct glsl_to_tgsi_visitor* glsl_to_tgsi;
struct ati_fragment_shader *ati_fs;
+ /* used when bypassing glsl_to_tgsi: */
+ struct gl_shader_program *shader_program;
+
struct st_fp_variant *variants;
};
@@ -164,6 +167,9 @@ struct st_vertex_program
struct pipe_shader_state tgsi;
struct glsl_to_tgsi_visitor* glsl_to_tgsi;
+ /* used when bypassing glsl_to_tgsi: */
+ struct gl_shader_program *shader_program;
+
/** maps a Mesa VERT_ATTRIB_x to a packed TGSI input index */
/** maps a TGSI input index back to a Mesa VERT_ATTRIB_x */
GLuint index_to_input[PIPE_MAX_SHADER_INPUTS];