diff options
author | Chia-I Wu <[email protected]> | 2013-06-26 11:52:55 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-26 16:42:46 +0800 |
commit | 5fb5d4f0a6208e720998bbdbfe83df1035957f4a (patch) | |
tree | a1017994126a86dbc119124f370cc439f3beacce /src/gallium/drivers/ilo/ilo_state.c | |
parent | 3eb6754e94c623c4c2393f23aeaafa933bee154e (diff) |
ilo: make pipe_draw_info a context state
Rename ilo_finalize_states() to ilo_finalize_3d_states(), and bind
pipe_draw_info to the context when it is called. This saves us from having to
pass pipe_draw_info around in several places.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_state.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.c b/src/gallium/drivers/ilo/ilo_state.c index 71783dfaca8..0e4e937879f 100644 --- a/src/gallium/drivers/ilo/ilo_state.c +++ b/src/gallium/drivers/ilo/ilo_state.c @@ -131,8 +131,11 @@ finalize_constant_buffers(struct ilo_context *ilo) * incomplete/invalid until finalized. */ void -ilo_finalize_states(struct ilo_context *ilo) +ilo_finalize_3d_states(struct ilo_context *ilo, + const struct pipe_draw_info *draw) { + ilo->draw = draw; + finalize_shader_states(ilo); finalize_constant_buffers(ilo); @@ -577,7 +580,7 @@ ilo_set_constant_buffer(struct pipe_context *pipe, cbuf->user_buffer_size = 0; } - /* the correct value will be set in ilo_finalize_states() */ + /* the correct value will be set in ilo_finalize_3d_states() */ ilo->cbuf[shader].count = 0; ilo->dirty |= ILO_DIRTY_CONSTANT_BUFFER; |