[Mesa-dev] [PATCH 2/8] svga: add const qualifier on svga_translate_format()

Brian Paul brianp at vmware.com
Fri Sep 23 15:48:12 UTC 2016


---
 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 1b3cebe..e3b146e 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 e6258179..70807c5 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);
 
-- 
1.9.1



More information about the mesa-dev mailing list