gallium: add driconf options to pipe_screen_config

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Nicolai Hähnle 2017-06-30 09:58:46 +02:00
parent e794f8bf8b
commit a35a9e7c6f
2 changed files with 5 additions and 0 deletions

View 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);
}

View 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;
};