aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorLucas Stach <[email protected]>2019-09-16 15:08:44 +0200
committerLucas Stach <[email protected]>2019-10-18 10:12:07 +0000
commit5b3e57059c3449cfc886550849c9f94b1f4a9677 (patch)
treea7febd182f780c18ae4ac80fa6d37e016d866fd0 /src/gallium
parent8eea8c9691f082e5a9f172efc600cc40d389177e (diff)
rbug: forward can_create_resource to pipe driver
Signed-off-by: Lucas Stach <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/driver_rbug/rbug_screen.c12
1 files changed, 12 insertions, 0 deletions
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);