mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
gallium: Constify drisw_loader_funcs struct
The content is not expected to change.
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Michal Srb <msrb@suse.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
(cherry picked from commit c0ac038c97)
This commit is contained in:
parent
d92bbe54ea
commit
a34228e1b0
4 changed files with 5 additions and 5 deletions
|
|
@ -142,7 +142,7 @@ pipe_loader_release(struct pipe_loader_device **devs, int ndev);
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
pipe_loader_sw_probe_dri(struct pipe_loader_device **devs,
|
pipe_loader_sw_probe_dri(struct pipe_loader_device **devs,
|
||||||
struct drisw_loader_funcs *drisw_lf);
|
const struct drisw_loader_funcs *drisw_lf);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize a kms backed sw device given an fd.
|
* Initialize a kms backed sw device given an fd.
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ pipe_loader_sw_probe_teardown_common(struct pipe_loader_sw_device *sdev)
|
||||||
|
|
||||||
#ifdef HAVE_PIPE_LOADER_DRI
|
#ifdef HAVE_PIPE_LOADER_DRI
|
||||||
bool
|
bool
|
||||||
pipe_loader_sw_probe_dri(struct pipe_loader_device **devs, struct drisw_loader_funcs *drisw_lf)
|
pipe_loader_sw_probe_dri(struct pipe_loader_device **devs, const struct drisw_loader_funcs *drisw_lf)
|
||||||
{
|
{
|
||||||
struct pipe_loader_sw_device *sdev = CALLOC_STRUCT(pipe_loader_sw_device);
|
struct pipe_loader_sw_device *sdev = CALLOC_STRUCT(pipe_loader_sw_device);
|
||||||
int i;
|
int i;
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ struct dri_sw_winsys
|
||||||
{
|
{
|
||||||
struct sw_winsys base;
|
struct sw_winsys base;
|
||||||
|
|
||||||
struct drisw_loader_funcs *lf;
|
const struct drisw_loader_funcs *lf;
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline struct dri_sw_displaytarget *
|
static inline struct dri_sw_displaytarget *
|
||||||
|
|
@ -282,7 +282,7 @@ dri_destroy_sw_winsys(struct sw_winsys *winsys)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct sw_winsys *
|
struct sw_winsys *
|
||||||
dri_create_sw_winsys(struct drisw_loader_funcs *lf)
|
dri_create_sw_winsys(const struct drisw_loader_funcs *lf)
|
||||||
{
|
{
|
||||||
struct dri_sw_winsys *ws;
|
struct dri_sw_winsys *ws;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,6 @@
|
||||||
|
|
||||||
struct sw_winsys;
|
struct sw_winsys;
|
||||||
|
|
||||||
struct sw_winsys *dri_create_sw_winsys(struct drisw_loader_funcs *lf);
|
struct sw_winsys *dri_create_sw_winsys(const struct drisw_loader_funcs *lf);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue