added outputs_written field to pipe_shader_state
authorBrian <brian.paul@tungstengraphics.com>
Fri, 17 Aug 2007 18:30:30 +0000 (12:30 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 17 Aug 2007 18:30:30 +0000 (12:30 -0600)
src/mesa/pipe/p_state.h
src/mesa/state_tracker/st_atom_fs.c
src/mesa/state_tracker/st_atom_vs.c

index c1972c56b30b8bb98fbf1ab46e8d476a781f3390..42bf50a6175c57da0e91e2ffdac3b5b09b2c14a0 100644 (file)
@@ -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? */
 };
index 7e12441784227fc75c75acef0c76626b03084e63..41ad49b317a758b10539c33b5454b7e486fe7a58 100644 (file)
@@ -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;
 
index d94c560bef7e7795391e73d37fc41b9a47f4836c..cef6e38d566e2ae492dafa305d78b536719edb0b 100644 (file)
@@ -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;