diff options
author | Chia-I Wu <[email protected]> | 2015-05-18 00:00:37 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-06-15 01:06:45 +0800 |
commit | ded7d412d04cf702596e91f36ba586b18f1933a2 (patch) | |
tree | 4ff925e3bf25e92d266ddf1cfbec8ab13ff4e46b /src/gallium/drivers/ilo/ilo_render.c | |
parent | 4b5c0a83415137ba1f894d70a6cf73db83d21f15 (diff) |
ilo: embed ilo_state_viewport in ilo_viewport_state
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_render.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_render.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_render.c b/src/gallium/drivers/ilo/ilo_render.c index f5be3360f05..92898704cde 100644 --- a/src/gallium/drivers/ilo/ilo_render.c +++ b/src/gallium/drivers/ilo/ilo_render.c @@ -447,11 +447,19 @@ draw_session_prepare(struct ilo_render *render, session->prim_changed = true; session->primitive_restart_changed = true; + + ilo_state_viewport_full_delta(&vec->viewport.vp, render->dev, + &session->vp_delta); } else { session->prim_changed = (render->state.reduced_prim != session->reduced_prim); session->primitive_restart_changed = (render->state.primitive_restart != vec->draw->primitive_restart); + + if (vec->dirty & ILO_DIRTY_VIEWPORT) { + ilo_state_viewport_full_delta(&vec->viewport.vp, render->dev, + &session->vp_delta); + } } } |