From da86e62d3c582dc3a96e361692d876c956b1fd24 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sat, 15 Sep 2012 13:14:27 +1000 Subject: [PATCH] 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 --- src/mesa/main/atifragshader.h | 2 -- src/mesa/swrast/s_atifragshader.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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}, -- 2.30.2