diff options
author | Nicolai Hähnle <[email protected]> | 2017-06-28 14:47:32 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-08-02 09:50:57 +0200 |
commit | bc7f41e11d325280db12e7b9444501357bc13922 (patch) | |
tree | 418517dd1010fd545e4059610b2a63541f823dd5 /src/gallium/include | |
parent | 781375ac6f4025d8af729fc3886ea9995f184667 (diff) |
gallium: add pipe_screen_config to screen_create functions
This allows a more generic mechanism for passing user configurations
into drivers by accessing the dri options directly.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_screen.h | 8 | ||||
-rw-r--r-- | src/gallium/include/state_tracker/drm_driver.h | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h index 65e954aa87e..a804aa93a8b 100644 --- a/src/gallium/include/pipe/p_screen.h +++ b/src/gallium/include/pipe/p_screen.h @@ -360,6 +360,14 @@ struct pipe_screen { }; +/** + * Global configuration options for screen creation. + */ +struct pipe_screen_config { + unsigned flags; +}; + + #ifdef __cplusplus } #endif diff --git a/src/gallium/include/state_tracker/drm_driver.h b/src/gallium/include/state_tracker/drm_driver.h index 1ac0528448b..f188b5a7d4c 100644 --- a/src/gallium/include/state_tracker/drm_driver.h +++ b/src/gallium/include/state_tracker/drm_driver.h @@ -5,6 +5,7 @@ #include "pipe/p_compiler.h" struct pipe_screen; +struct pipe_screen_config; struct pipe_context; struct pipe_resource; @@ -104,7 +105,8 @@ struct drm_driver_descriptor * This function does any wrapping of the screen. * For example wrapping trace or rbug debugging drivers around it. */ - struct pipe_screen* (*create_screen)(int drm_fd, unsigned flags); + struct pipe_screen* (*create_screen)(int drm_fd, + const struct pipe_screen_config *config); /** * Return a configuration value. |