[Mesa-dev] [PATCH 5/5] gallium: annotate sw_driver_descriptor instance as const data

Marek Olšák maraeo at gmail.com
Wed Oct 12 16:04:49 UTC 2016


For the series:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Tue, Oct 11, 2016 at 8:39 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> Already treated and handled as such.
>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
>  src/gallium/include/state_tracker/sw_driver.h | 2 +-
>  src/gallium/targets/pipe-loader/pipe_swrast.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/include/state_tracker/sw_driver.h b/src/gallium/include/state_tracker/sw_driver.h
> index 0eb2b44..1d59bd5 100644
> --- a/src/gallium/include/state_tracker/sw_driver.h
> +++ b/src/gallium/include/state_tracker/sw_driver.h
> @@ -16,6 +16,6 @@ struct sw_driver_descriptor
>     } winsys[];
>  };
>
> -extern struct sw_driver_descriptor swrast_driver_descriptor;
> +extern const struct sw_driver_descriptor swrast_driver_descriptor;
>
>  #endif
> diff --git a/src/gallium/targets/pipe-loader/pipe_swrast.c b/src/gallium/targets/pipe-loader/pipe_swrast.c
> index cf617f3..0a980b3 100644
> --- a/src/gallium/targets/pipe-loader/pipe_swrast.c
> +++ b/src/gallium/targets/pipe-loader/pipe_swrast.c
> @@ -23,7 +23,7 @@ swrast_create_screen(struct sw_winsys *ws)
>  }
>
>  PUBLIC
> -struct sw_driver_descriptor swrast_driver_descriptor = {
> +const struct sw_driver_descriptor swrast_driver_descriptor = {
>     .create_screen = swrast_create_screen,
>     .winsys = {
>  #ifdef HAVE_PIPE_LOADER_DRI
> --
> 2.10.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list