diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-06-30 09:58:46 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-07-13 13:27:46 +0200 |
commit | 91c1fe42d585ddffc15cac883805f63bd85455c4 (patch) | |
tree | ce89953e267c5e5f0f11f211179eb8aa02b29068 | |
parent | 82163029b3aeae8429a3fdfadfd370f72ac50b2f (diff) |
gallium: add driconf options to pipe_screen_config
-rw-r--r-- | src/gallium/auxiliary/pipe-loader/pipe_loader.c | 3 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_screen.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader.c b/src/gallium/auxiliary/pipe-loader/pipe_loader.c index 95e6b42cf7..f55312f548 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader.c +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader.c @@ -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); } diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h index a804aa93a8..bf26a5298f 100644 --- a/src/gallium/include/pipe/p_screen.h +++ b/src/gallium/include/pipe/p_screen.h @@ -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; }; |