mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
added outputs_written field to pipe_shader_state
This commit is contained in:
parent
4973136e20
commit
a2805a8165
3 changed files with 4 additions and 1 deletions
|
|
@ -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? */
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue