aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/driver_trace
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-08-29 20:35:54 -0400
committerMarek Olšák <[email protected]>2019-09-18 14:41:30 -0400
commitd307aa56f9f92da79d4ebbf1f9a1b3e65156f258 (patch)
tree42ae1de067d2d65a19dc28c6c8209787a0192753 /src/gallium/auxiliary/driver_trace
parentaae35fbd3a3eba176ac6fdf6357be49002a561ee (diff)
gallium: extend resource_get_param to be as capable as resource_get_handle
Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/driver_trace')
-rw-r--r--src/gallium/auxiliary/driver_trace/tr_screen.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/driver_trace/tr_screen.c b/src/gallium/auxiliary/driver_trace/tr_screen.c
index 0417e2339c2..380e3ea7511 100644
--- a/src/gallium/auxiliary/driver_trace/tr_screen.c
+++ b/src/gallium/auxiliary/driver_trace/tr_screen.c
@@ -409,17 +409,23 @@ trace_screen_resource_get_handle(struct pipe_screen *_screen,
static bool
trace_screen_resource_get_param(struct pipe_screen *_screen,
+ struct pipe_context *_pipe,
struct pipe_resource *resource,
- unsigned int plane,
+ unsigned plane,
+ unsigned layer,
enum pipe_resource_param param,
+ unsigned handle_usage,
uint64_t *value)
{
struct trace_screen *tr_screen = trace_screen(_screen);
+ struct trace_context *tr_pipe = _pipe ? trace_context(_pipe) : NULL;
struct pipe_screen *screen = tr_screen->screen;
/* TODO trace call */
- return screen->resource_get_param(screen, resource, plane, param, value);
+ return screen->resource_get_param(screen, tr_pipe ? tr_pipe->pipe : NULL,
+ resource, plane, layer, param,
+ handle_usage, value);
}
static void