summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/rbug/rbug_screen.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-02-22 09:18:09 +1100
committerTimothy Arceri <[email protected]>2017-02-23 09:20:22 +1100
commit8239eef2f77024b585324d6ea730478b1be1eeeb (patch)
tree679fffa5dcf35efe3b27f4efb7e261f167905a14 /src/gallium/drivers/rbug/rbug_screen.c
parent4be98ed5fd23e42c19a20b322a0207326f834c64 (diff)
ddebug/rbug/trace: add get_disk_shader_cache() to pass-throughs
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/rbug/rbug_screen.c')
-rw-r--r--src/gallium/drivers/rbug/rbug_screen.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/rbug/rbug_screen.c b/src/gallium/drivers/rbug/rbug_screen.c
index 8fbbe7319fb..3ed90908ceb 100644
--- a/src/gallium/drivers/rbug/rbug_screen.c
+++ b/src/gallium/drivers/rbug/rbug_screen.c
@@ -77,6 +77,14 @@ rbug_screen_get_device_vendor(struct pipe_screen *_screen)
return screen->get_device_vendor(screen);
}
+static struct disk_cache *
+rbug_screen_get_disk_shader_cache(struct pipe_screen *_screen)
+{
+ struct pipe_screen *screen = rbug_screen(_screen)->screen;
+
+ return screen->get_disk_shader_cache(screen);
+}
+
static int
rbug_screen_get_param(struct pipe_screen *_screen,
enum pipe_cap param)
@@ -283,6 +291,7 @@ rbug_screen_create(struct pipe_screen *screen)
rb_screen->base.destroy = rbug_screen_destroy;
rb_screen->base.get_name = rbug_screen_get_name;
rb_screen->base.get_vendor = rbug_screen_get_vendor;
+ SCR_INIT(get_disk_shader_cache);
rb_screen->base.get_device_vendor = rbug_screen_get_device_vendor;
rb_screen->base.get_param = rbug_screen_get_param;
rb_screen->base.get_shader_param = rbug_screen_get_shader_param;