Mesa (master): tgsi: remove unused function argument

Keith Whitwell keithw at kemper.freedesktop.org
Wed Aug 19 11:00:58 UTC 2009


Module: Mesa
Branch: master
Commit: 7dc55275922aa52f281b7d8d4a5d776a3799b762
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7dc55275922aa52f281b7d8d4a5d776a3799b762

Author: Keith Whitwell <keithw at vmware.com>
Date:   Wed Aug 19 12:00:03 2009 +0100

tgsi: remove unused function argument

---

 src/gallium/auxiliary/tgsi/tgsi_ureg.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
index 2fa1eb4..2121f4d 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
@@ -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) {




More information about the mesa-commit mailing list