From: Caio Marcelo de Oliveira Filho Date: Wed, 5 Jun 2019 05:55:13 +0000 (-0700) Subject: iris: Only recompile CS when needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=747926ddfbc743b4b26ec63041c5aa49f89dfe2b;p=mesa.git iris: Only recompile CS when needed Reviewed-by: Kenneth Graunke Reviewed-by: Sagar Ghuge --- diff --git a/src/gallium/drivers/iris/iris_draw.c b/src/gallium/drivers/iris/iris_draw.c index 17e4eab67d8..fd937ec7138 100644 --- a/src/gallium/drivers/iris/iris_draw.c +++ b/src/gallium/drivers/iris/iris_draw.c @@ -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);