i965: Warnings cleanup.
authorEric Anholt <eric@anholt.net>
Mon, 23 May 2011 16:26:42 +0000 (09:26 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 25 May 2011 18:16:36 +0000 (11:16 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/gen7_vs_state.c

index 2d41302d15aa13ee409b2a2511d2e513d747dffa..e7370f360643052437159f7f3ab04f91eb70ed3d 100644 (file)
@@ -93,8 +93,6 @@ static void brw_set_dest(struct brw_compile *p,
                         struct brw_instruction *insn,
                         struct brw_reg dest)
 {
-   struct intel_context *intel = &p->brw->intel;
-
    if (dest.file != BRW_ARCHITECTURE_REGISTER_FILE &&
        dest.file != BRW_MESSAGE_REGISTER_FILE)
       assert(dest.nr < 128);
@@ -1254,7 +1252,6 @@ struct brw_instruction *gen6_CONT(struct brw_compile *p,
                                  struct brw_instruction *do_insn)
 {
    struct brw_instruction *insn;
-   int br = 2;
 
    insn = next_insn(p, BRW_OPCODE_CONTINUE);
    brw_set_dest(p, insn, retype(brw_null_reg(), BRW_REGISTER_TYPE_D));
index 6a7add8e562f7bd845496d2c43939931e92aa59a..ae7a1d6c35cc9a4492acde265a2d3f4952b8bbce 100644 (file)
@@ -33,7 +33,6 @@ static void
 upload_vs_state(struct brw_context *brw)
 {
    struct intel_context *intel = &brw->intel;
-   struct gl_context *ctx = &intel->ctx;
 
    BEGIN_BATCH(2);
    OUT_BATCH(_3DSTATE_BINDING_TABLE_POINTERS_VS << 16 | (2 - 2));