summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-12-19 11:32:56 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2007-12-19 11:37:16 +0000
commit1f37b4d87e798690ed080e5da356366906ff55cd (patch)
treea619a22a2013e88578ab27f06e0199cc22619fc5
parent38de4c5715209171bc168454f7a6dc6c43b341b8 (diff)
965: respect surface width when dumping bitmap
-rw-r--r--src/mesa/pipe/xlib/brw_aub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/xlib/brw_aub.c b/src/mesa/pipe/xlib/brw_aub.c
index 1b7fc3c20e..541d50c6e4 100644
--- a/src/mesa/pipe/xlib/brw_aub.c
+++ b/src/mesa/pipe/xlib/brw_aub.c
@@ -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;