[Mesa-dev] [PATCH] st/dri: constify dri_fill_st_visual's screen
Emil Velikov
emil.l.velikov at gmail.com
Tue Apr 24 17:48:02 UTC 2018
From: Emil Velikov <emil.velikov at collabora.com>
As the function says - only the visual is changed.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/gallium/state_trackers/dri/dri_screen.c | 3 ++-
src/gallium/state_trackers/dri/dri_screen.h | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c
index aaee987077..374efbdf61 100644
--- a/src/gallium/state_trackers/dri/dri_screen.c
+++ b/src/gallium/state_trackers/dri/dri_screen.c
@@ -298,7 +298,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));
diff --git a/src/gallium/state_trackers/dri/dri_screen.h b/src/gallium/state_trackers/dri/dri_screen.h
index 677e945e03..e410aa9c2f 100644
--- a/src/gallium/state_trackers/dri/dri_screen.h
+++ b/src/gallium/state_trackers/dri/dri_screen.h
@@ -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
--
2.16.0
More information about the mesa-dev
mailing list