From 5b3e57059c3449cfc886550849c9f94b1f4a9677 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Mon, 16 Sep 2019 15:08:44 +0200 Subject: [PATCH] rbug: forward can_create_resource to pipe driver Signed-off-by: Lucas Stach --- src/gallium/auxiliary/driver_rbug/rbug_screen.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/gallium/auxiliary/driver_rbug/rbug_screen.c b/src/gallium/auxiliary/driver_rbug/rbug_screen.c index 62ee8001767..6c7a7cfc9ea 100644 --- a/src/gallium/auxiliary/driver_rbug/rbug_screen.c +++ b/src/gallium/auxiliary/driver_rbug/rbug_screen.c @@ -152,6 +152,17 @@ rbug_screen_context_create(struct pipe_screen *_screen, return NULL; } +static bool +rbug_screen_can_create_resource(struct pipe_screen *_screen, + const struct pipe_resource *templat) +{ + struct rbug_screen *rb_screen = rbug_screen(_screen); + struct pipe_screen *screen = rb_screen->screen; + + return screen->can_create_resource(screen, + templat); +} + static struct pipe_resource * rbug_screen_resource_create(struct pipe_screen *_screen, const struct pipe_resource *templat) @@ -361,6 +372,7 @@ rbug_screen_create(struct pipe_screen *screen) rb_screen->base.get_paramf = rbug_screen_get_paramf; rb_screen->base.is_format_supported = rbug_screen_is_format_supported; rb_screen->base.context_create = rbug_screen_context_create; + SCR_INIT(can_create_resource); rb_screen->base.resource_create = rbug_screen_resource_create; rb_screen->base.resource_from_handle = rbug_screen_resource_from_handle; SCR_INIT(check_resource_capability); -- 2.30.2