[Mesa-dev] [PATCH] st/dri: constify dri_fill_st_visual's screen
Marek Olšák
maraeo at gmail.com
Tue Apr 24 22:24:13 UTC 2018
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Tue, Apr 24, 2018 at 1:48 PM, Emil Velikov <emil.l.velikov at gmail.com>
wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> As the function says - only the visual is changed.
>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
> src/gallium/state_trackers/dri/dri_screen.c | 3 ++-
> src/gallium/state_trackers/dri/dri_screen.h | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/state_trackers/dri/dri_screen.c
> b/src/gallium/state_trackers/dri/dri_screen.c
> index aaee987077..374efbdf61 100644
> --- a/src/gallium/state_trackers/dri/dri_screen.c
> +++ b/src/gallium/state_trackers/dri/dri_screen.c
> @@ -298,7 +298,8 @@ dri_fill_in_modes(struct dri_screen *screen)
> * Roughly the converse of dri_fill_in_modes.
> */
> void
> -dri_fill_st_visual(struct st_visual *stvis, struct dri_screen *screen,
> +dri_fill_st_visual(struct st_visual *stvis,
> + const struct dri_screen *screen,
> const struct gl_config *mode)
> {
> memset(stvis, 0, sizeof(*stvis));
> diff --git a/src/gallium/state_trackers/dri/dri_screen.h
> b/src/gallium/state_trackers/dri/dri_screen.h
> index 677e945e03..e410aa9c2f 100644
> --- a/src/gallium/state_trackers/dri/dri_screen.h
> +++ b/src/gallium/state_trackers/dri/dri_screen.h
> @@ -127,7 +127,8 @@ dri_with_format(__DRIscreen * sPriv)
> }
>
> void
> -dri_fill_st_visual(struct st_visual *stvis, struct dri_screen *screen,
> +dri_fill_st_visual(struct st_visual *stvis,
> + const struct dri_screen *screen,
> const struct gl_config *mode);
>
> void
> --
> 2.16.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180424/5c2946d3/attachment.html>
More information about the mesa-dev
mailing list