diff options
author | Bas Nieuwenhuizen <[email protected]> | 2016-05-27 13:55:56 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-05-27 20:00:07 +0200 |
commit | 4717d5a2d33cf61e65573339ba78b4016203021e (patch) | |
tree | 43281059aec6c8dbc2e8a9c27d651abb8bdc9893 /src/gallium | |
parent | 0482efdc93f130a1defa021e5d198bc6ef59af5a (diff) |
gallium/ddebug: Add passthrough for query_memory_info.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/ddebug/dd_screen.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/ddebug/dd_screen.c b/src/gallium/drivers/ddebug/dd_screen.c index ebe090b9bd1..5a883bdd016 100644 --- a/src/gallium/drivers/ddebug/dd_screen.c +++ b/src/gallium/drivers/ddebug/dd_screen.c @@ -101,6 +101,14 @@ dd_screen_get_timestamp(struct pipe_screen *_screen) return screen->get_timestamp(screen); } +static void dd_screen_query_memory_info(struct pipe_screen *_screen, + struct pipe_memory_info *info) +{ + struct pipe_screen *screen = dd_screen(_screen)->screen; + + return screen->query_memory_info(screen, info); +} + static struct pipe_context * dd_screen_context_create(struct pipe_screen *_screen, void *priv, unsigned flags) @@ -332,6 +340,7 @@ ddebug_screen_create(struct pipe_screen *screen) 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; + dscreen->base.query_memory_info = dd_screen_query_memory_info; /* get_video_param */ /* get_compute_param */ SCR_INIT(get_timestamp); |