iris/compute: Get group counts from grid->grid
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 18 Sep 2018 20:04:59 +0000 (13:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:09 +0000 (10:26 -0800)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/iris/iris_state.c

index a4644f02b61edbad1742a2f69d8689966525f94e..4c6788b5f0643b61df9e1701ffea398c4ac4344e 100644 (file)
@@ -4355,9 +4355,9 @@ iris_upload_compute_state(struct iris_context *ice,
       ggw.ThreadDepthCounterMaximum  = 0;
       ggw.ThreadHeightCounterMaximum = 0;
       ggw.ThreadWidthCounterMaximum  = cs_prog_data->threads - 1;
-      ggw.ThreadGroupIDXDimension    = grid->block[0];
-      ggw.ThreadGroupIDYDimension    = grid->block[1];
-      ggw.ThreadGroupIDZDimension    = grid->block[2];
+      ggw.ThreadGroupIDXDimension    = grid->grid[0];
+      ggw.ThreadGroupIDYDimension    = grid->grid[1];
+      ggw.ThreadGroupIDZDimension    = grid->grid[2];
       ggw.RightExecutionMask         = right_mask;
       ggw.BottomExecutionMask        = 0xffffffff;
    }