gallium: add driconf options to pipe_screen_config
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 30 Jun 2017 07:58:46 +0000 (09:58 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 2 Aug 2017 07:50:57 +0000 (09:50 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/pipe-loader/pipe_loader.c
src/gallium/include/pipe/p_screen.h

index 95e6b42cf714429c1004c1f527a6432f3e7df14f..f55312f548a597c501a4db3cf6c17484112eadd8 100644 (file)
@@ -111,6 +111,9 @@ struct pipe_screen *
 pipe_loader_create_screen(struct pipe_loader_device *dev,
                           struct pipe_screen_config *config)
 {
+   pipe_loader_load_options(dev);
+   config->options = &dev->option_cache;
+
    return dev->ops->create_screen(dev, config);
 }
 
index a804aa93a8b9b1288ee8869e61adbc181a0a370b..bf26a5298fbe9fdb1e0a552636dcfd7106cb091b 100644 (file)
@@ -59,6 +59,7 @@ struct pipe_transfer;
 struct pipe_box;
 struct pipe_memory_info;
 struct disk_cache;
+struct driOptionCache;
 
 
 /**
@@ -365,6 +366,7 @@ struct pipe_screen {
  */
 struct pipe_screen_config {
    unsigned flags;
+   const struct driOptionCache *options;
 };