summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-08-13 14:28:56 -0700
committerKenneth Graunke <[email protected]>2019-08-21 22:18:22 +0000
commit0e6b573ae57da2fd15891c7e9d2a9024203aa507 (patch)
tree517d1ac970cad7e77215725be64d938bb89b2592 /src/gallium/auxiliary
parent74a7e3ed3b297f441b406ff62ef9ba504ba3b06c (diff)
gallium/ddebug: Wrap resource_get_param if available
Fixes: 0346b700833 ("gallium/screen: Add pipe_screen::resource_get_param") Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/driver_ddebug/dd_screen.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/driver_ddebug/dd_screen.c b/src/gallium/auxiliary/driver_ddebug/dd_screen.c
index 12d31b5fb33..25cb2014210 100644
--- a/src/gallium/auxiliary/driver_ddebug/dd_screen.c
+++ b/src/gallium/auxiliary/driver_ddebug/dd_screen.c
@@ -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)
SCR_INIT(resource_from_user_memory);
SCR_INIT(check_resource_capability);
dscreen->base.resource_get_handle = dd_screen_resource_get_handle;
+ SCR_INIT(resource_get_param);
SCR_INIT(resource_get_info);
SCR_INIT(resource_changed);
dscreen->base.resource_destroy = dd_screen_resource_destroy;