From: Brian Paul Date: Tue, 20 Sep 2016 23:01:20 +0000 (-0600) Subject: svga: add const qualifier on svga_translate_format() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ad4ba07279236dcdbafb6e4b2a0c183c69c92f4;p=mesa.git svga: add const qualifier on svga_translate_format() Reviewed-by: Charmaine Lee --- diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c index 1b3cebe5bc9..e3b146effb7 100644 --- a/src/gallium/drivers/svga/svga_format.c +++ b/src/gallium/drivers/svga/svga_format.c @@ -379,7 +379,7 @@ svga_translate_vertex_format_vgpu10(enum pipe_format format, * Translate from gallium format to SVGA3D format. */ SVGA3dSurfaceFormat -svga_translate_format(struct svga_screen *ss, +svga_translate_format(const struct svga_screen *ss, enum pipe_format format, unsigned bind) { diff --git a/src/gallium/drivers/svga/svga_format.h b/src/gallium/drivers/svga/svga_format.h index e6258179745..70807c5245a 100644 --- a/src/gallium/drivers/svga/svga_format.h +++ b/src/gallium/drivers/svga/svga_format.h @@ -63,7 +63,7 @@ svga_translate_vertex_format_vgpu10(enum pipe_format format, unsigned *vf_flags); enum SVGA3dSurfaceFormat -svga_translate_format(struct svga_screen *ss, +svga_translate_format(const struct svga_screen *ss, enum pipe_format format, unsigned bind);