panfrost: Stub out launch_grid
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 23 Jul 2019 15:31:14 +0000 (08:31 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 1 Aug 2019 23:23:01 +0000 (16:23 -0700)
Just dumps some information about the invocation for later debug.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_compute.c

index 14fc27eae70a89c2ec24c56b88286b04d25b2d16..5ef26f3e35d6ad588001bffead2aa4a282fdd27b 100644 (file)
@@ -51,12 +51,25 @@ panfrost_delete_compute_state(struct pipe_context *pipe, void *cso)
         free(cso);
 }
 
+static void
+panfrost_launch_grid(struct pipe_context *pipe,
+                const struct pipe_grid_info *info)
+{
+        printf("Launch grid %dx%dx%d ... %dx%dx%d\n",
+                        info->block[0], info->block[1], info->block[2],
+                        info->grid[0], info->grid[1], info->grid[2]);
+
+        /* Stub */
+}
+
 void
 panfrost_compute_context_init(struct pipe_context *pctx)
 {
         pctx->create_compute_state = panfrost_create_compute_state;
         pctx->bind_compute_state = panfrost_bind_compute_state;
         pctx->delete_compute_state = panfrost_delete_compute_state;
+
+        pctx->launch_grid = panfrost_launch_grid;
 }