From bc7f41e11d325280db12e7b9444501357bc13922 Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Wed, 28 Jun 2017 14:47:32 +0200 Subject: gallium: add pipe_screen_config to screen_create functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows a more generic mechanism for passing user configurations into drivers by accessing the dri options directly. Reviewed-by: Marek Olšák --- src/gallium/auxiliary/pipe-loader/pipe_loader.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/pipe-loader/pipe_loader.h') diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader.h b/src/gallium/auxiliary/pipe-loader/pipe_loader.h index 73b75586cfa..969feace7f1 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader.h +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader.h @@ -82,9 +82,12 @@ pipe_loader_probe(struct pipe_loader_device **devs, int ndev); * Create a pipe_screen for the specified device. * * \param dev Device the screen will be created for. + * \param config Configuration options. The lifetime of this structure and its + * elements may be limited to the duration of this call. */ struct pipe_screen * -pipe_loader_create_screen(struct pipe_loader_device *dev, unsigned flags); +pipe_loader_create_screen(struct pipe_loader_device *dev, + struct pipe_screen_config *config); /** * Query the configuration parameters for the specified device. -- cgit v1.2.3