svga: add const qualifier on svga_translate_format()
authorBrian Paul <brianp@vmware.com>
Tue, 20 Sep 2016 23:01:20 +0000 (17:01 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 24 Sep 2016 01:54:42 +0000 (19:54 -0600)
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_format.c
src/gallium/drivers/svga/svga_format.h

index 1b3cebe5bc96be32a082c8c018c2d2b01c5a2090..e3b146effb79ba16433a30e6bb41efdb2d832bc3 100644 (file)
@@ -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)
 {
index e6258179745de6c7a408765e8ef04622001687c6..70807c5245a8f9a6fa33b354b39fb1306e42769e 100644 (file)
@@ -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);