panfrost: Stub out clover callbacks
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 5 Nov 2019 14:37:51 +0000 (09:37 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>
Tue, 19 Nov 2019 06:22:31 +0000 (06:22 +0000)
We don't implement these yet but let's not crash.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_compute.c

index 20a9a0904a624257fb0f2277edff0ac8706f22f2..23e3791d1d54948dc50d567bc0fc491e7efb1871 100644 (file)
@@ -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;
+}