From a35a9e7c6f1ddba0b1e80a30f0f7114a2cdc402d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Fri, 30 Jun 2017 09:58:46 +0200 Subject: [PATCH] gallium: add driconf options to pipe_screen_config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/gallium/auxiliary/pipe-loader/pipe_loader.c | 3 +++ src/gallium/include/pipe/p_screen.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader.c b/src/gallium/auxiliary/pipe-loader/pipe_loader.c index 95e6b42cf71..f55312f548a 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 a804aa93a8b..bf26a5298fb 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; };