ilo: initialize dirty flags in ilo_init_states()
authorChia-I Wu <olvaffe@gmail.com>
Thu, 13 Jun 2013 09:46:58 +0000 (17:46 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Thu, 13 Jun 2013 15:47:18 +0000 (23:47 +0800)
Now that we have a function to initialize states, initialize dirty flags there
too.

src/gallium/drivers/ilo/ilo_context.c
src/gallium/drivers/ilo/ilo_state.c

index c5067034a77797cfeda79b68f6955cdeea7f5726..dce1136da9653dbd01d51d4640610a1f535197cc 100644 (file)
@@ -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;
 
index 3b9e8cb14958400af0ba12a80cfb5585df738911..3fe19e0fba9c9ee89a5669d7838b6dcecf08cc10 100644 (file)
@@ -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