summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/driver_trace
diff options
context:
space:
mode:
authorJulien Isorce <[email protected]>2019-04-23 14:26:33 -0700
committerJulien Isorce <[email protected]>2019-04-30 17:53:12 +0000
commita3c202de0a963c0562796cf75e3a9b3eedf1afad (patch)
treed5944a294314d5a154833fd2b6b4b5667e1f8166 /src/gallium/auxiliary/driver_trace
parentec6c2297634eba77248a929048cf4201887a5f0a (diff)
gallium: add resource_get_info to pipe_screen
Generic plumbing. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110443 Signed-off-by: Julien Isorce <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/driver_trace')
-rw-r--r--src/gallium/auxiliary/driver_trace/tr_screen.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/driver_trace/tr_screen.c b/src/gallium/auxiliary/driver_trace/tr_screen.c
index e42aef63552..d14d46d123f 100644
--- a/src/gallium/auxiliary/driver_trace/tr_screen.c
+++ b/src/gallium/auxiliary/driver_trace/tr_screen.c
@@ -407,6 +407,20 @@ trace_screen_resource_get_handle(struct pipe_screen *_screen,
resource, handle, usage);
}
+static void
+trace_screen_resource_get_info(struct pipe_screen *_screen,
+ struct pipe_resource *resource,
+ unsigned *stride,
+ unsigned *offset)
+{
+ struct trace_screen *tr_screen = trace_screen(_screen);
+ struct pipe_screen *screen = tr_screen->screen;
+
+ /* TODO trace call */
+
+ screen->resource_get_info(screen, resource, stride, offset);
+}
+
static struct pipe_resource *
trace_screen_resource_from_memobj(struct pipe_screen *_screen,
const struct pipe_resource *templ,
@@ -673,6 +687,7 @@ trace_screen_create(struct pipe_screen *screen)
tr_scr->base.resource_from_handle = trace_screen_resource_from_handle;
SCR_INIT(check_resource_capability);
tr_scr->base.resource_get_handle = trace_screen_resource_get_handle;
+ SCR_INIT(resource_get_info);
SCR_INIT(resource_from_memobj);
SCR_INIT(resource_changed);
tr_scr->base.resource_destroy = trace_screen_resource_destroy;