Commit 813ed862 authored by Kenneth Graunke's avatar Kenneth Graunke Committed by Dylan Baker

gallium/rbug: 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 f02d1a0b)
parent 6e6f137a
......@@ -215,6 +215,22 @@ rbug_screen_resource_get_handle(struct pipe_screen *_screen,
resource, handle, usage);
static bool
rbug_screen_resource_get_param(struct pipe_screen *_screen,
struct pipe_resource *_resource,
unsigned int plane,
enum pipe_resource_param param,
uint64_t *value)
struct rbug_screen *rb_screen = rbug_screen(_screen);
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);
static void
rbug_screen_resource_get_info(struct pipe_screen *_screen,
struct pipe_resource *_resource,
......@@ -333,6 +349,7 @@ rbug_screen_create(struct pipe_screen *screen)
rb_screen->base.resource_from_handle = rbug_screen_resource_from_handle;
rb_screen->base.resource_get_handle = rbug_screen_resource_get_handle;
rb_screen->base.resource_destroy = rbug_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