From: Dave Airlie Date: Sat, 15 Sep 2012 03:14:27 +0000 (+1000) Subject: mesa/ati_fragshader: no need for opcodes to be global. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da86e62d3c582dc3a96e361692d876c956b1fd24;p=mesa.git mesa/ati_fragshader: no need for opcodes to be global. I can't see these in use anywhere outside this file. Reviewed-by: Matt Turner Signed-off-by: Dave Airlie --- diff --git a/src/mesa/main/atifragshader.h b/src/mesa/main/atifragshader.h index 90ada212a01..86214d47389 100644 --- a/src/mesa/main/atifragshader.h +++ b/src/mesa/main/atifragshader.h @@ -25,8 +25,6 @@ struct ati_fs_opcode_st GLint num_src_args; }; -extern struct ati_fs_opcode_st ati_fs_opcodes[]; - struct atifragshader_src_register { GLuint Index; diff --git a/src/mesa/swrast/s_atifragshader.c b/src/mesa/swrast/s_atifragshader.c index 394fac50b66..e3b57b72c8e 100644 --- a/src/mesa/swrast/s_atifragshader.c +++ b/src/mesa/swrast/s_atifragshader.c @@ -237,7 +237,7 @@ finish_pass(struct atifs_machine *machine) } } -struct ati_fs_opcode_st ati_fs_opcodes[] = { +static struct ati_fs_opcode_st ati_fs_opcodes[] = { {GL_ADD_ATI, 2}, {GL_SUB_ATI, 2}, {GL_MUL_ATI, 2},