diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-11-05 09:37:51 -0500 |
---|---|---|
committer | Tomeu Vizoso <[email protected]> | 2019-11-19 06:22:31 +0000 |
commit | a7b5dd12905f7efdec4a6490353178402c352b37 (patch) | |
tree | cad15b8eec370dfaa010523f6f0887c4f4b0bcbf | |
parent | b1969585749fd9f0975427c47582995749137b2c (diff) |
panfrost: Stub out clover callbacks
We don't implement these yet but let's not crash.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r-- | src/gallium/drivers/panfrost/pan_compute.c | 28 |
1 files changed, 27 insertions, 1 deletions
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; +} |