diff options
author | Dave Airlie <[email protected]> | 2011-01-09 17:25:12 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-01-09 17:25:12 +1000 |
commit | 97195d04fd3d07c15dc8f22707c511f0798cfbc9 (patch) | |
tree | 02b8d47ff989d77e22afae67e10e3ef268bd1ad6 /src/gallium/drivers/i965 | |
parent | 5e044e3900cd97be140a4fff3151711504109c86 (diff) |
i965g: fix warnings
Diffstat (limited to 'src/gallium/drivers/i965')
-rw-r--r-- | src/gallium/drivers/i965/brw_screen.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/i965/brw_winsys_debug.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_screen.c b/src/gallium/drivers/i965/brw_screen.c index 7842218593e..bf805fd080c 100644 --- a/src/gallium/drivers/i965/brw_screen.c +++ b/src/gallium/drivers/i965/brw_screen.c @@ -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); diff --git a/src/gallium/drivers/i965/brw_winsys_debug.c b/src/gallium/drivers/i965/brw_winsys_debug.c index 18a1eb4f29d..b66b1cfccb6 100644 --- a/src/gallium/drivers/i965/brw_winsys_debug.c +++ b/src/gallium/drivers/i965/brw_winsys_debug.c @@ -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; |