tgsi: remove unused function argument
authorKeith Whitwell <keithw@vmware.com>
Wed, 19 Aug 2009 11:00:03 +0000 (12:00 +0100)
committerKeith Whitwell <keithw@vmware.com>
Wed, 19 Aug 2009 11:00:03 +0000 (12:00 +0100)
src/gallium/auxiliary/tgsi/tgsi_ureg.c

index 2fa1eb4c105bd456eab65339fd708b1bc9550940..2121f4d77cfbace21fb3c55dad409bd3b4b3b75c 100644 (file)
@@ -739,8 +739,7 @@ static void copy_instructions( struct ureg_program *ureg )
 
 
 static void
-fixup_header_size(struct ureg_program *ureg,
-                     unsigned insn )
+fixup_header_size(struct ureg_program *ureg )
 {
    union tgsi_any_token *out = retrieve_token( ureg, DOMAIN_DECL, 1 );
 
@@ -768,12 +767,11 @@ emit_header( struct ureg_program *ureg )
 void *ureg_create_shader( struct ureg_program *ureg )
 {
    struct pipe_shader_state state;
-   unsigned insn;
 
    emit_header( ureg );
    emit_decls( ureg );
    copy_instructions( ureg );
-   fixup_header_size( ureg, insn );
+   fixup_header_size( ureg );
    
    if (ureg->domain[0].tokens == error_tokens ||
        ureg->domain[1].tokens == error_tokens) {