Mesa (master): panfrost: Stub out clover callbacks

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 19 06:46:07 UTC 2019


Module: Mesa
Branch: master
Commit: a7b5dd12905f7efdec4a6490353178402c352b37
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7b5dd12905f7efdec4a6490353178402c352b37

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Tue Nov  5 09:37:51 2019 -0500

panfrost: Stub out clover callbacks

We don't implement these yet but let's not crash.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>

---

 src/gallium/drivers/panfrost/pan_compute.c | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

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;
+}




More information about the mesa-commit mailing list