st/dri: constify dri_fill_st_visual's screen
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 24 Apr 2018 17:48:02 +0000 (18:48 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 21 Jun 2018 11:09:39 +0000 (12:09 +0100)
As the function says - only the visual is changed.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/state_trackers/dri/dri_screen.c
src/gallium/state_trackers/dri/dri_screen.h

index 6228425d9a2d6e3a11c47d6ee906059660eae2fd..87729c190a890b12ab5b0b86f0e5cc916f54aacd 100644 (file)
@@ -302,7 +302,8 @@ dri_fill_in_modes(struct dri_screen *screen)
  * Roughly the converse of dri_fill_in_modes.
  */
 void
-dri_fill_st_visual(struct st_visual *stvis, struct dri_screen *screen,
+dri_fill_st_visual(struct st_visual *stvis,
+                   const struct dri_screen *screen,
                    const struct gl_config *mode)
 {
    memset(stvis, 0, sizeof(*stvis));
index 677e945e039241b525c637e331ae11fbe4e884f0..e410aa9c2f263bdc3ef9a35507f700e976be3782 100644 (file)
@@ -127,7 +127,8 @@ dri_with_format(__DRIscreen * sPriv)
 }
 
 void
-dri_fill_st_visual(struct st_visual *stvis, struct dri_screen *screen,
+dri_fill_st_visual(struct st_visual *stvis,
+                   const struct dri_screen *screen,
                    const struct gl_config *mode);
 
 void