i965g: fix warnings
authorDave Airlie <airlied@gmail.com>
Sun, 9 Jan 2011 07:25:12 +0000 (17:25 +1000)
committerDave Airlie <airlied@gmail.com>
Sun, 9 Jan 2011 07:25:12 +0000 (17:25 +1000)
src/gallium/drivers/i965/brw_screen.c
src/gallium/drivers/i965/brw_winsys_debug.c

index 7842218593e4d95a0fc0e7ef7c016713584d5486..bf805fd080c9e2ed33900e68f4821ab1eebae10a 100644 (file)
@@ -405,7 +405,6 @@ struct pipe_screen *
 brw_screen_create(struct brw_winsys_screen *sws)
 {
    struct brw_screen *bscreen;
-   int gen;
 #ifdef DEBUG
    BRW_DEBUG = debug_get_flags_option("BRW_DEBUG", debug_names, 0);
    BRW_DEBUG |= debug_get_flags_option("INTEL_DEBUG", debug_names, 0);
index 18a1eb4f29dfd0eaa4216aaf5f2dabec681e8cfa..b66b1cfccb69e1eb6f8d5356497743c632e6e905 100644 (file)
@@ -18,7 +18,7 @@ void brw_dump_data( unsigned pci_id,
       case BRW_DATA_GS_VS_PROG:
       case BRW_DATA_GS_GS_PROG:
       case BRW_DATA_GS_CLIP_PROG:
-         brw_disasm( stderr, data, size / sizeof(struct brw_instruction), gen );
+         brw_disasm( stderr, (struct brw_instruction *)data, size / sizeof(struct brw_instruction), gen );
          break;
       default:
          break;