summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_state.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-03 14:43:57 -0600
committerBrian <[email protected]>2007-10-03 14:43:57 -0600
commit635c4c41bdf111462939da292d65328595d314e8 (patch)
tree99753f7b6d8ad6d8f90d08e8076c2fecd3cf9e7c /src/mesa/pipe/p_state.h
parent65996f27f48e2212bf36e515aba82b6876398bfd (diff)
Add outputs_written bitfield to pipe_shader_state, use it to determine if fragment shader writes Z.
Diffstat (limited to 'src/mesa/pipe/p_state.h')
-rw-r--r--src/mesa/pipe/p_state.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index ac9d7009cc0..64c5f13f232 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -150,13 +150,11 @@ struct pipe_shader_state {
#endif
void *executable;
- /** These fields somewhat constitute the shader "signature" */
ubyte num_inputs;
ubyte num_outputs;
-
+ uint outputs_written; /**< bitmask */
ubyte input_semantic_name[PIPE_MAX_SHADER_INPUTS]; /**< TGSI_SEMANTIC_x */
ubyte input_semantic_index[PIPE_MAX_SHADER_INPUTS];
-
ubyte output_semantic_name[PIPE_MAX_SHADER_OUTPUTS]; /**< TGSI_SEMANTIC_x */
ubyte output_semantic_index[PIPE_MAX_SHADER_OUTPUTS];
};