aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/include/state_tracker/sw_driver.h2
-rw-r--r--src/gallium/targets/pipe-loader/pipe_swrast.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/include/state_tracker/sw_driver.h b/src/gallium/include/state_tracker/sw_driver.h
index 0eb2b44d6fd..1d59bd5fe56 100644
--- a/src/gallium/include/state_tracker/sw_driver.h
+++ b/src/gallium/include/state_tracker/sw_driver.h
@@ -16,6 +16,6 @@ struct sw_driver_descriptor
} winsys[];
};
-extern struct sw_driver_descriptor swrast_driver_descriptor;
+extern const struct sw_driver_descriptor swrast_driver_descriptor;
#endif
diff --git a/src/gallium/targets/pipe-loader/pipe_swrast.c b/src/gallium/targets/pipe-loader/pipe_swrast.c
index cf617f37e20..0a980b3b1a9 100644
--- a/src/gallium/targets/pipe-loader/pipe_swrast.c
+++ b/src/gallium/targets/pipe-loader/pipe_swrast.c
@@ -23,7 +23,7 @@ swrast_create_screen(struct sw_winsys *ws)
}
PUBLIC
-struct sw_driver_descriptor swrast_driver_descriptor = {
+const struct sw_driver_descriptor swrast_driver_descriptor = {
.create_screen = swrast_create_screen,
.winsys = {
#ifdef HAVE_PIPE_LOADER_DRI