From: Alyssa Rosenzweig Date: Tue, 23 Jul 2019 15:31:14 +0000 (-0700) Subject: panfrost: Stub out launch_grid X-Git-Tag: upstream/19.3.0~3473 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a8b83ca0b632139a4bea3433db22a60b53c3efa;p=platform%2Fupstream%2Fmesa.git panfrost: Stub out launch_grid Just dumps some information about the invocation for later debug. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_compute.c b/src/gallium/drivers/panfrost/pan_compute.c index 14fc27e..5ef26f3 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; }