From: José Fonseca Date: Fri, 19 Sep 2008 01:20:10 +0000 (+0900) Subject: softpipe: Obey const qualifier. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f88d871ea051e0c89bbbfc832a565fc8de70c6a;p=mesa.git softpipe: Obey const qualifier. --- diff --git a/src/gallium/drivers/softpipe/sp_fs_exec.c b/src/gallium/drivers/softpipe/sp_fs_exec.c index ffc0c5e578e..4fea71c3140 100644 --- a/src/gallium/drivers/softpipe/sp_fs_exec.c +++ b/src/gallium/drivers/softpipe/sp_fs_exec.c @@ -42,13 +42,13 @@ struct sp_exec_fragment_shader { struct sp_fragment_shader base; - struct tgsi_token *machine_tokens; + const struct tgsi_token *machine_tokens; }; /** cast wrapper */ static INLINE struct sp_exec_fragment_shader * -sp_exec_fragment_shader(struct sp_fragment_shader *base) +sp_exec_fragment_shader(const struct sp_fragment_shader *base) { return (struct sp_exec_fragment_shader *) base; }