diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/driver_trace/tr_screen.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/driver_trace/tr_screen.c b/src/gallium/auxiliary/driver_trace/tr_screen.c index 41243cf72af..0417e2339c2 100644 --- a/src/gallium/auxiliary/driver_trace/tr_screen.c +++ b/src/gallium/auxiliary/driver_trace/tr_screen.c @@ -407,6 +407,21 @@ trace_screen_resource_get_handle(struct pipe_screen *_screen, resource, handle, usage); } +static bool +trace_screen_resource_get_param(struct pipe_screen *_screen, + struct pipe_resource *resource, + unsigned int plane, + enum pipe_resource_param param, + uint64_t *value) +{ + struct trace_screen *tr_screen = trace_screen(_screen); + struct pipe_screen *screen = tr_screen->screen; + + /* TODO trace call */ + + return screen->resource_get_param(screen, resource, plane, param, value); +} + static void trace_screen_resource_get_info(struct pipe_screen *_screen, struct pipe_resource *resource, @@ -687,6 +702,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_param); SCR_INIT(resource_get_info); SCR_INIT(resource_from_memobj); SCR_INIT(resource_changed); |