Mesa (master): iris: Only recompile CS when needed

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 5 20:05:09 UTC 2019


Module: Mesa
Branch: master
Commit: 747926ddfbc743b4b26ec63041c5aa49f89dfe2b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=747926ddfbc743b4b26ec63041c5aa49f89dfe2b

Author: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Date:   Tue Jun  4 22:55:13 2019 -0700

iris: Only recompile CS when needed

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Sagar Ghuge <sagar.ghuge at intel.com>

---

 src/gallium/drivers/iris/iris_draw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);




More information about the mesa-commit mailing list