summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-06-13 17:46:58 +0800
committerChia-I Wu <[email protected]>2013-06-13 23:47:18 +0800
commit4df85dbc0652d13093bc29c93b247ced4654af6c (patch)
tree549448d69b7bc4d887a02a589e8d7e20726acbb3 /src/gallium
parent6057d7b7b58102bf7c3c4ecb08c1b7261f299efa (diff)
ilo: initialize dirty flags in ilo_init_states()
Now that we have a function to initialize states, initialize dirty flags there too.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/ilo/ilo_context.c2
-rw-r--r--src/gallium/drivers/ilo/ilo_state.c2
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