Commit 6e6f137a authored by Kenneth Graunke's avatar Kenneth Graunke Committed by Dylan Baker

gallium/trace: Wrap resource_get_param if available

Fixes: 0346b700 ("gallium/screen: Add pipe_screen::resource_get_param")
Reviewed-by: Jordan Justen's avatarJordan Justen <>
Reviewed-by: default avatarMarek Olšák <>
(cherry picked from commit c43a4479)
parent 07760c1c
......@@ -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;
tr_scr->base.resource_get_handle = trace_screen_resource_get_handle;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment