From a2805a81658fd4a4b9732167f24f334630549fa6 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 17 Aug 2007 12:30:30 -0600 Subject: [PATCH] added outputs_written field to pipe_shader_state --- src/mesa/pipe/p_state.h | 3 ++- src/mesa/state_tracker/st_atom_fs.c | 1 + src/mesa/state_tracker/st_atom_vs.c | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h index c1972c56b30..42bf50a6175 100644 --- a/src/mesa/pipe/p_state.h +++ b/src/mesa/pipe/p_state.h @@ -122,7 +122,8 @@ struct pipe_constant_buffer { struct pipe_shader_state { - unsigned inputs_read; /* FRAG/VERT_ATTRIB_* */ + unsigned inputs_read; /**< FRAG/VERT_ATTRIB_x */ + unsigned outputs_written; /**< FRAG/VERT_RESULT_x */ const struct tgsi_token *tokens; struct pipe_constant_buffer *constants; /* XXX temporary? */ }; diff --git a/src/mesa/state_tracker/st_atom_fs.c b/src/mesa/state_tracker/st_atom_fs.c index 7e124417842..41ad49b317a 100644 --- a/src/mesa/state_tracker/st_atom_fs.c +++ b/src/mesa/state_tracker/st_atom_fs.c @@ -85,6 +85,7 @@ static void update_fs( struct st_context *st ) memset( &fs, 0, sizeof(fs) ); fs.inputs_read = fp->Base.Base.InputsRead; + fs.outputs_written = fp->Base.Base.OutputsWritten; fs.tokens = &fp->tokens[0]; fs.constants = &fp->constants; diff --git a/src/mesa/state_tracker/st_atom_vs.c b/src/mesa/state_tracker/st_atom_vs.c index d94c560bef7..cef6e38d566 100644 --- a/src/mesa/state_tracker/st_atom_vs.c +++ b/src/mesa/state_tracker/st_atom_vs.c @@ -95,6 +95,7 @@ static void update_vs( struct st_context *st ) compile_vs( st, vp ); memset( &vs, 0, sizeof(vs) ); + vs.outputs_written = vp->Base.Base.OutputsWritten; vs.inputs_read = vp->Base.Base.InputsRead; vs.tokens = &vp->tokens[0]; vs.constants = &vp->constants; -- 2.30.2