softpipe: minor debug-help changes in softpipe_transfer_map()
authorBrian Paul <brianp@vmware.com>
Tue, 7 Apr 2009 23:31:49 +0000 (17:31 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 7 Apr 2009 23:31:49 +0000 (17:31 -0600)
src/gallium/drivers/softpipe/sp_texture.c

index e3c577c24948346829e7fb9dbf03b3c0a8e849b7..c0113c47adb37dd7bc0c8429666a3067f79bca7e 100644 (file)
@@ -327,7 +327,7 @@ static void *
 softpipe_transfer_map( struct pipe_screen *screen,
                        struct pipe_transfer *transfer )
 {
-   ubyte *map;
+   ubyte *map, *xfer_map;
    struct softpipe_texture *spt;
    unsigned flags = 0;
 
@@ -357,9 +357,11 @@ softpipe_transfer_map( struct pipe_screen *screen,
       softpipe_screen(screen)->timestamp++;
    }
    
-   return map + softpipe_transfer(transfer)->offset +
+   xfer_map = map + softpipe_transfer(transfer)->offset +
       transfer->y / transfer->block.height * transfer->stride +
       transfer->x / transfer->block.width * transfer->block.size;
+   /*printf("map = %p  xfer map = %p\n", map, xfer_map);*/
+   return xfer_map;
 }