965: respect surface width when dumping bitmap
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 19 Dec 2007 11:32:56 +0000 (11:32 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 19 Dec 2007 11:37:16 +0000 (11:37 +0000)
src/mesa/pipe/xlib/brw_aub.c

index 1b7fc3c20e499c41c495bc41dcad5f5e1399b6a6..541d50c6e40c3c6baa874360795020cd5fe8a287 100644 (file)
@@ -331,7 +331,7 @@ void brw_aub_dump_bmp( struct brw_aubfile *aubfile,
    db.format = format;
    db.bpp = surface->cpp * 8;
    db.pitch = surface->pitch;
-   db.xsize = surface->pitch;
+   db.xsize = surface->width;
    db.ysize = surface->height;
    db.addr = gtt_offset;
    db.unknown = /* surface->tiled ? 0x4 : */ 0x0;