summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-07-23 08:31:14 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-01 16:23:01 -0700
commit5a8b83ca0b632139a4bea3433db22a60b53c3efa (patch)
treea999d0c826de9cee3e9eb5c3d641826b10134053 /src/gallium/drivers/panfrost
parenta8fc40aaf54c6e24ab66c8b2ad27713338c786bb (diff)
panfrost: Stub out launch_grid
Just dumps some information about the invocation for later debug. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost')
-rw-r--r--src/gallium/drivers/panfrost/pan_compute.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_compute.c b/src/gallium/drivers/panfrost/pan_compute.c
index 14fc27eae70..5ef26f3e35d 100644
--- a/src/gallium/drivers/panfrost/pan_compute.c
+++ b/src/gallium/drivers/panfrost/pan_compute.c
@@ -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;
}