Mesa (master): ddebug: add compute functions to help hang detection

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 5 00:01:30 UTC 2019


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Fri Mar 29 12:57:55 2019 +1000

ddebug: add compute functions to help hang detection

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

---

 src/gallium/auxiliary/driver_ddebug/dd_context.c | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/driver_ddebug/dd_context.c b/src/gallium/auxiliary/driver_ddebug/dd_context.c
index 96d9a650d86..8a3b75a2436 100644
--- a/src/gallium/auxiliary/driver_ddebug/dd_context.c
+++ b/src/gallium/auxiliary/driver_ddebug/dd_context.c
@@ -675,6 +675,25 @@ dd_context_resource_commit(struct pipe_context *_pipe,
 }
 
 static void
+dd_context_set_compute_resources(struct pipe_context *_pipe,
+				 unsigned start, unsigned count,
+				 struct pipe_surface **resources)
+{
+   struct pipe_context *pipe = dd_context(_pipe)->pipe;
+   return pipe->set_compute_resources(pipe, start, count, resources);
+}
+
+static void
+dd_context_set_global_binding(struct pipe_context *_pipe,
+			      unsigned first, unsigned count,
+			      struct pipe_resource **resources,
+			      uint32_t **handles)
+{
+   struct pipe_context *pipe = dd_context(_pipe)->pipe;
+   return pipe->set_global_binding(pipe, first, count, resources, handles);
+}
+
+static void
 dd_context_get_sample_position(struct pipe_context *_pipe,
                                unsigned sample_count, unsigned sample_index,
                                float *out_value)
@@ -884,10 +903,10 @@ dd_context_create(struct dd_screen *dscreen, struct pipe_context *pipe)
    CTX_INIT(texture_barrier);
    CTX_INIT(memory_barrier);
    CTX_INIT(resource_commit);
+   CTX_INIT(set_compute_resources);
+   CTX_INIT(set_global_binding);
    /* create_video_codec */
    /* create_video_buffer */
-   /* set_compute_resources */
-   /* set_global_binding */
    CTX_INIT(get_sample_position);
    CTX_INIT(invalidate_resource);
    CTX_INIT(get_device_reset_status);




More information about the mesa-commit mailing list