summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_state.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-05-30 19:48:32 +0800
committerChia-I Wu <[email protected]>2013-06-07 11:13:15 +0800
commit99725d2f8ae2e2d0dd1e80ac05b127c7f99778d3 (patch)
tree21cdcb7622df4e1fe1f17098b692712dd9a7fb08 /src/gallium/drivers/ilo/ilo_state.h
parente51806ee7ab52873c773619595962582c2abf0fe (diff)
ilo: construct SCISSOR_RECT in set_scissor_states()
This allows us to memcpy() the state in draw_vbo(). Add ilo_init_states() and ilo_cleanup_states() that are called when contexts are created and destroyed respectively, and properly set the initial scissor state in ilo_init_states().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_state.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.h b/src/gallium/drivers/ilo/ilo_state.h
index e8db6cbc048..c73e8fb835b 100644
--- a/src/gallium/drivers/ilo/ilo_state.h
+++ b/src/gallium/drivers/ilo/ilo_state.h
@@ -119,6 +119,12 @@ void
ilo_init_state_functions(struct ilo_context *ilo);
void
+ilo_init_states(struct ilo_context *ilo);
+
+void
+ilo_cleanup_states(struct ilo_context *ilo);
+
+void
ilo_finalize_states(struct ilo_context *ilo);
#endif /* ILO_STATE_H */