diff options
author | Emil Velikov <[email protected]> | 2018-04-24 18:48:02 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-06-21 12:09:39 +0100 |
commit | 1c1f70d12f2c6b5b9a7e70963df573adc734df91 (patch) | |
tree | 40e49927b45bc404cbe239694e9b999504b37118 /src/gallium/state_trackers/dri | |
parent | ccaa9f09cc573f0d9190fa7cdfd66ef066763710 (diff) |
st/dri: constify dri_fill_st_visual's screen
As the function says - only the visual is changed.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_screen.c | 3 | ||||
-rw-r--r-- | 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 6228425d9a2..87729c190a8 100644 --- a/src/gallium/state_trackers/dri/dri_screen.c +++ b/src/gallium/state_trackers/dri/dri_screen.c @@ -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)); diff --git a/src/gallium/state_trackers/dri/dri_screen.h b/src/gallium/state_trackers/dri/dri_screen.h index 677e945e039..e410aa9c2f2 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 |