mesa/ati_fragshader: no need for opcodes to be global.
authorDave Airlie <airlied@gmail.com>
Sat, 15 Sep 2012 03:14:27 +0000 (13:14 +1000)
committerDave Airlie <airlied@gmail.com>
Sat, 15 Sep 2012 08:03:30 +0000 (18:03 +1000)
I can't see these in use anywhere outside this file.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/atifragshader.h
src/mesa/swrast/s_atifragshader.c

index 90ada212a01d9bc01ad85e63e7aaae16f89127fd..86214d473899347b9281807e51a8dfca694bb4fc 100644 (file)
@@ -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;
index 394fac50b66c6a13533ddb04cfce4760e36f5b08..e3b57b72c8eb9ecf2ce67deb67abc9f829e7a717 100644 (file)
@@ -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},