iris: Only recompile CS when needed

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
This commit is contained in:
Caio Marcelo de Oliveira Filho
2019-06-04 22:55:13 -07:00
parent 0430c6d18a
commit 747926ddfb
+1 -1
View 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);