aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/driver_rbug/rbug_screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/driver_rbug/rbug_screen.c')
-rw-r--r--src/gallium/auxiliary/driver_rbug/rbug_screen.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/driver_rbug/rbug_screen.c b/src/gallium/auxiliary/driver_rbug/rbug_screen.c
index 247745fa533..a85d4e60e5b 100644
--- a/src/gallium/auxiliary/driver_rbug/rbug_screen.c
+++ b/src/gallium/auxiliary/driver_rbug/rbug_screen.c
@@ -217,17 +217,23 @@ rbug_screen_resource_get_handle(struct pipe_screen *_screen,
static bool
rbug_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 rbug_screen *rb_screen = rbug_screen(_screen);
+ struct rbug_context *rb_pipe = rbug_context(_pipe);
struct rbug_resource *rb_resource = rbug_resource(_resource);
struct pipe_screen *screen = rb_screen->screen;
struct pipe_resource *resource = rb_resource->resource;
- return screen->resource_get_param(screen, resource, plane, param, value);
+ return screen->resource_get_param(screen, rb_pipe ? rb_pipe->pipe : NULL,
+ resource, plane, layer, param,
+ handle_usage, value);
}