[Mesa-dev] [PATCH 38/38] egl_dri2: constify remaining __DRI*Extensions
Ilia Mirkin
imirkin at alum.mit.edu
Wed Feb 12 19:09:23 PST 2014
On Wed, Feb 12, 2014 at 8:18 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> Already threaded as such, but stored as non-const.
treated
>
> The loader extensions - __DRIdri2LoaderExtension and __DRIdri2LoaderExtension
> are setup by the platform backends.
set up
>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
> src/egl/drivers/dri2/egl_dri2.c | 4 ++--
> src/egl/drivers/dri2/egl_dri2.h | 16 ++++++++--------
> 2 files changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
> index 80bc834..9dbf7c0 100644
> --- a/src/egl/drivers/dri2/egl_dri2.c
> +++ b/src/egl/drivers/dri2/egl_dri2.c
> @@ -587,10 +587,10 @@ dri2_create_screen(_EGLDisplay *disp)
>
> for (i = 0; extensions[i]; i++) {
> if (strcmp(extensions[i]->name, __DRI2_ROBUSTNESS) == 0) {
> - dri2_dpy->robustness = (__DRIrobustnessExtension *) extensions[i];
> + dri2_dpy->robustness = (const __DRIrobustnessExtension *) extensions[i];
> }
> if (strcmp(extensions[i]->name, __DRI2_CONFIG_QUERY) == 0) {
> - dri2_dpy->config = (__DRI2configQueryExtension *) extensions[i];
> + dri2_dpy->config = (const __DRI2configQueryExtension *) extensions[i];
> }
> }
> } else {
> diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
> index dfc5927..a20a827 100644
> --- a/src/egl/drivers/dri2/egl_dri2.h
> +++ b/src/egl/drivers/dri2/egl_dri2.h
> @@ -92,14 +92,14 @@ struct dri2_egl_display
> int own_dri_screen;
> const __DRIconfig **driver_configs;
> void *driver;
> - __DRIcoreExtension *core;
> - __DRIdri2Extension *dri2;
> - __DRIswrastExtension *swrast;
> - __DRI2flushExtension *flush;
> - __DRItexBufferExtension *tex_buffer;
> - __DRIimageExtension *image;
> - __DRIrobustnessExtension *robustness;
> - __DRI2configQueryExtension *config;
> + const __DRIcoreExtension *core;
> + const __DRIdri2Extension *dri2;
> + const __DRIswrastExtension *swrast;
> + const __DRI2flushExtension *flush;
> + const __DRItexBufferExtension *tex_buffer;
> + const __DRIimageExtension *image;
> + const __DRIrobustnessExtension *robustness;
> + const __DRI2configQueryExtension *config;
> int fd;
>
> int own_device;
> --
> 1.8.5.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list