[Mesa-dev] [PATCH 1/5] gallium: allow passing 'unsigned flags' to create_screen()
Michel Dänzer
michel at daenzer.net
Wed Jun 21 03:02:17 UTC 2017
On 21/06/17 07:54 AM, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> for drirc options
[...]
> diff --git a/src/gallium/include/state_tracker/drm_driver.h b/src/gallium/include/state_tracker/drm_driver.h
> index 88dda0a..4383276 100644
> --- a/src/gallium/include/state_tracker/drm_driver.h
> +++ b/src/gallium/include/state_tracker/drm_driver.h
> @@ -95,21 +95,21 @@ struct drm_driver_descriptor
> * Identifying prefix/suffix of the binary, used by the pipe-loader.
> */
> const char *driver_name;
>
> /**
> * Create a pipe srcreen.
> *
> * 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);
> + struct pipe_screen* (*create_screen)(int drm_fd, unsigned flags);
If you use an enum for the flags, gdb should be able to print the
symbolic flag names.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list