st/dri: constify dri_fill_st_visual's screen

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>
This commit is contained in:
Emil Velikov 2018-04-24 18:48:02 +01:00 committed by Emil Velikov
parent ccaa9f09cc
commit 1c1f70d12f
2 changed files with 4 additions and 2 deletions

View 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));

View 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