iris: Only recompile CS when needed
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 5 Jun 2019 05:55:13 +0000 (22:55 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 5 Jun 2019 19:57:54 +0000 (12:57 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
src/gallium/drivers/iris/iris_draw.c

index 17e4eab..fd937ec 100644 (file)
@@ -314,7 +314,7 @@ iris_launch_grid(struct pipe_context *ctx, const struct pipe_grid_info *grid)
 
    iris_batch_maybe_flush(batch, 1500);
 
-   //if (dirty & IRIS_DIRTY_UNCOMPILED_CS)
+   if (ice->state.dirty & IRIS_DIRTY_UNCOMPILED_CS)
       iris_update_compiled_compute_shader(ice);
 
    iris_update_grid_size_resource(ice, grid);