From: Alyssa Rosenzweig Date: Tue, 5 Nov 2019 14:37:51 +0000 (-0500) Subject: panfrost: Stub out clover callbacks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7b5dd12905f7efdec4a6490353178402c352b37;p=mesa.git panfrost: Stub out clover callbacks We don't implement these yet but let's not crash. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_compute.c b/src/gallium/drivers/panfrost/pan_compute.c index 20a9a0904a6..23e3791d1d5 100644 --- a/src/gallium/drivers/panfrost/pan_compute.c +++ b/src/gallium/drivers/panfrost/pan_compute.c @@ -145,6 +145,29 @@ panfrost_launch_grid(struct pipe_context *pipe, panfrost_flush_all_batches(ctx, true); } +static void +panfrost_set_compute_resources(struct pipe_context *pctx, + unsigned start, unsigned count, + struct pipe_surface **resources) +{ + /* TODO */ +} + +static void +panfrost_set_global_binding(struct pipe_context *pctx, + unsigned first, unsigned count, + struct pipe_resource **resources, + uint32_t **handles) +{ + /* TODO */ +} + +static void +panfrost_memory_barrier(struct pipe_context *pctx, unsigned flags) +{ + /* TODO */ +} + void panfrost_compute_context_init(struct pipe_context *pctx) { @@ -153,6 +176,9 @@ panfrost_compute_context_init(struct pipe_context *pctx) pctx->delete_compute_state = panfrost_delete_compute_state; pctx->launch_grid = panfrost_launch_grid; -} + pctx->set_compute_resources = panfrost_set_compute_resources; + pctx->set_global_binding = panfrost_set_global_binding; + pctx->memory_barrier = panfrost_memory_barrier; +}