From 5a8b83ca0b632139a4bea3433db22a60b53c3efa Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 23 Jul 2019 08:31:14 -0700 Subject: [PATCH] panfrost: Stub out launch_grid Just dumps some information about the invocation for later debug. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_compute.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; } -- 2.30.2