From dcfb06375aabb9a851fd1c72e95342da79281e27 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 21 Jan 2018 18:04:05 -0800 Subject: [PATCH] iris: initialize dirty bits to ~0ull --- src/gallium/drivers/iris/iris_context.c | 2 +- src/gallium/drivers/iris/iris_context.h | 2 +- src/gallium/drivers/iris/iris_state.c | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index f751e623d7e..42d7efd8ed4 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -111,9 +111,9 @@ iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags) iris_init_clear_functions(ctx); iris_init_program_functions(ctx); iris_init_resource_functions(ctx); - iris_init_state_functions(ctx); iris_init_query_functions(ctx); + iris_init_state(ice); iris_init_program_cache(ice); iris_init_batch(&ice->render_batch, screen, &ice->dbg, I915_EXEC_RENDER); diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index d502682c7f6..15fae9ba876 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -138,7 +138,6 @@ void iris_init_blit_functions(struct pipe_context *ctx); void iris_init_clear_functions(struct pipe_context *ctx); void iris_init_program_functions(struct pipe_context *ctx); void iris_init_resource_functions(struct pipe_context *ctx); -void iris_init_state_functions(struct pipe_context *ctx); void iris_init_query_functions(struct pipe_context *ctx); void iris_setup_state_base_address(struct iris_context *ice, @@ -163,6 +162,7 @@ enum iris_program_cache_id { IRIS_CACHE_BLORP, }; +void iris_init_state(struct iris_context *ice); void iris_init_program_cache(struct iris_context *ice); void iris_destroy_program_cache(struct iris_context *ice); void iris_print_program_cache(struct iris_context *ice); diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index bf0301bb9ae..d85173ef5df 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1655,8 +1655,12 @@ iris_destroy_state(struct iris_context *ice) } void -iris_init_state_functions(struct pipe_context *ctx) +iris_init_state(struct iris_context *ice) { + struct pipe_context *ctx = &ice->ctx; + + ice->state.dirty = ~0ull; + ctx->create_blend_state = iris_create_blend_state; ctx->create_depth_stencil_alpha_state = iris_create_zsa_state; ctx->create_rasterizer_state = iris_create_rasterizer_state; -- 2.30.2