From: Lucas Stach Date: Mon, 16 Sep 2019 13:08:44 +0000 (+0200) Subject: rbug: forward can_create_resource to pipe driver X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b3e57059c3449cfc886550849c9f94b1f4a9677;p=mesa.git rbug: forward can_create_resource to pipe driver Signed-off-by: Lucas Stach --- 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);