Commit 07760c1c authored by Kenneth Graunke's avatar Kenneth Graunke Committed by Dylan Baker

gallium/ddebug: 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 0e6b573a)
parent 0504bff3
......@@ -311,6 +311,18 @@ dd_screen_resource_get_handle(struct pipe_screen *_screen,
return screen->resource_get_handle(screen, pipe, resource, handle, usage);
static bool
dd_screen_resource_get_param(struct pipe_screen *_screen,
struct pipe_resource *resource,
unsigned int plane,
enum pipe_resource_param param,
uint64_t *value)
struct pipe_screen *screen = dd_screen(_screen)->screen;
return screen->resource_get_param(screen, resource, plane, param, value);
static void
dd_screen_resource_get_info(struct pipe_screen *_screen,
struct pipe_resource *resource,
......@@ -565,6 +577,7 @@ ddebug_screen_create(struct pipe_screen *screen)
dscreen->base.resource_get_handle = dd_screen_resource_get_handle;
dscreen->base.resource_destroy = dd_screen_resource_destroy;
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