From 4df85dbc0652d13093bc29c93b247ced4654af6c Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 13 Jun 2013 17:46:58 +0800 Subject: [PATCH] ilo: initialize dirty flags in ilo_init_states() Now that we have a function to initialize states, initialize dirty flags there too. --- src/gallium/drivers/ilo/ilo_context.c | 2 -- src/gallium/drivers/ilo/ilo_state.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/ilo/ilo_context.c b/src/gallium/drivers/ilo/ilo_context.c index c5067034a77..dce1136da96 100644 --- a/src/gallium/drivers/ilo/ilo_context.c +++ b/src/gallium/drivers/ilo/ilo_context.c @@ -139,8 +139,6 @@ ilo_context_create(struct pipe_screen *screen, void *priv) util_slab_create(&ilo->transfer_mempool, sizeof(struct ilo_transfer), 64, UTIL_SLAB_SINGLETHREADED); - ilo->dirty = ILO_DIRTY_ALL; - ilo->base.screen = screen; ilo->base.priv = priv; diff --git a/src/gallium/drivers/ilo/ilo_state.c b/src/gallium/drivers/ilo/ilo_state.c index 3b9e8cb1495..3fe19e0fba9 100644 --- a/src/gallium/drivers/ilo/ilo_state.c +++ b/src/gallium/drivers/ilo/ilo_state.c @@ -1110,6 +1110,8 @@ void ilo_init_states(struct ilo_context *ilo) { ilo_gpe_set_scissor_null(ilo->dev, &ilo->scissor); + + ilo->dirty = ILO_DIRTY_ALL; } void -- 2.30.2