gallium/ddebug: Add passthrough for get_compute_param.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 21 Apr 2016 15:05:19 +0000 (17:05 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 13 May 2016 05:39:12 +0000 (07:39 +0200)
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/ddebug/dd_screen.c

index fbc0bec73ddcbe4cbb59c9992d6d3b59c1ff2d97..ebe090b9bd1f0f8967e56e90574347b3a8b5d2fe 100644 (file)
@@ -73,6 +73,17 @@ dd_screen_get_paramf(struct pipe_screen *_screen,
    return screen->get_paramf(screen, param);
 }
 
+static int
+dd_screen_get_compute_param(struct pipe_screen *_screen,
+                            enum pipe_shader_ir ir_type,
+                            enum pipe_compute_cap param,
+                            void *ret)
+{
+   struct pipe_screen *screen = dd_screen(_screen)->screen;
+
+   return screen->get_compute_param(screen, ir_type, param, ret);
+}
+
 static int
 dd_screen_get_shader_param(struct pipe_screen *_screen, unsigned shader,
                            enum pipe_shader_cap param)
@@ -319,6 +330,7 @@ ddebug_screen_create(struct pipe_screen *screen)
    dscreen->base.get_device_vendor = dd_screen_get_device_vendor;
    dscreen->base.get_param = dd_screen_get_param;
    dscreen->base.get_paramf = dd_screen_get_paramf;
+   dscreen->base.get_compute_param = dd_screen_get_compute_param;
    dscreen->base.get_shader_param = dd_screen_get_shader_param;
    /* get_video_param */
    /* get_compute_param */