diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-02-12 19:42:22 +0100 |
---|---|---|
committer | Michel Dänzer <daenzer@vmware.com> | 2009-02-12 19:42:22 +0100 |
commit | 9ab677a84b564a00e2e1e6874dbc2c0295b3402d (patch) | |
tree | ffface0115654e4855355d1ec4da075132731003 /src/gallium/winsys/xlib/xlib_brw_aub.c | |
parent | 479d929530ce40a39d9310576b97cb46fab214de (diff) |
gallium/winsys/xlib: Fix stride calculations.
Diffstat (limited to 'src/gallium/winsys/xlib/xlib_brw_aub.c')
-rw-r--r-- | src/gallium/winsys/xlib/xlib_brw_aub.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/winsys/xlib/xlib_brw_aub.c b/src/gallium/winsys/xlib/xlib_brw_aub.c index c63cd51d32..73d1ac9161 100644 --- a/src/gallium/winsys/xlib/xlib_brw_aub.c +++ b/src/gallium/winsys/xlib/xlib_brw_aub.c @@ -36,6 +36,7 @@ #include "pipe/p_state.h" #include "pipe/p_debug.h" #include "util/u_memory.h" +#include "softpipe/sp_texture.h" struct brw_aubfile { @@ -335,7 +336,8 @@ void brw_aub_dump_bmp( struct brw_aubfile *aubfile, db.ymin = 0; db.format = format; db.bpp = surface->texture->block.size * 8; - db.pitch = surface->texture->nblocksx[surface->level]; + db.pitch = softpipe_texture(surface->texture)->stride[surface->level] / + surface->texture->block.size; db.xsize = surface->width; db.ysize = surface->height; db.addr = gtt_offset; |