From 2ad4ba07279236dcdbafb6e4b2a0c183c69c92f4 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 20 Sep 2016 17:01:20 -0600 Subject: [PATCH] svga: add const qualifier on svga_translate_format() Reviewed-by: Charmaine Lee --- src/gallium/drivers/svga/svga_format.c | 2 +- src/gallium/drivers/svga/svga_format.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2