diff options
author | Nicolai Hähnle <[email protected]> | 2017-06-28 17:50:19 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-08-02 09:50:57 +0200 |
commit | e794f8bf8bdb7cd0820251b46a9387ea5a7316da (patch) | |
tree | cda2f6ab2301d409ce404f13ab5b4bfcbe3588a9 /src/gallium/auxiliary/pipe-loader/pipe_loader.h | |
parent | 678dadf1237a3fb492ee2d8daa32d0205dea59ba (diff) |
gallium: move loading of drirc to pipe-loader
v2: rebase compile fix: addition of mesa_no_error
Reviewed-by: Marek Olšák <[email protected]> (v1)
Diffstat (limited to 'src/gallium/auxiliary/pipe-loader/pipe_loader.h')
-rw-r--r-- | src/gallium/auxiliary/pipe-loader/pipe_loader.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader.h b/src/gallium/auxiliary/pipe-loader/pipe_loader.h index d24480dfd91..a4502ae2586 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader.h +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader.h @@ -35,6 +35,7 @@ #include "pipe/p_compiler.h" #include "state_tracker/drm_driver.h" +#include "util/xmlconfig.h" #ifdef __cplusplus extern "C" { @@ -65,6 +66,9 @@ struct pipe_loader_device { char *driver_name; const struct pipe_loader_ops *ops; + + driOptionCache option_cache; + driOptionCache option_info; }; /** @@ -100,6 +104,16 @@ pipe_loader_configuration(struct pipe_loader_device *dev, enum drm_conf conf); /** + * Ensure that dev->option_cache is initialized appropriately for the driver. + * + * This function can be called multiple times. + * + * \param dev Device for which options should be loaded. + */ +void +pipe_loader_load_options(struct pipe_loader_device *dev); + +/** * Release resources allocated for a list of devices. * * Should be called when the specified devices are no longer in use to |