gallium: annotate sw_driver_descriptor instance as const data
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 11 Oct 2016 18:39:27 +0000 (19:39 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 10:09:00 +0000 (11:09 +0100)
Already treated and handled as such.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/include/state_tracker/sw_driver.h
src/gallium/targets/pipe-loader/pipe_swrast.c

index 0eb2b44d6fd325d2c519acc6c9f12f1a03dadfe9..1d59bd5fe56e2a11587e2a7cf21031d2b55d72c4 100644 (file)
@@ -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
index cf617f37e20f151275c386ef6675c221af62021c..0a980b3b1a9e42e6849bcda4715e422983acfaec 100644 (file)
@@ -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