gallium: fix clipping/stride bugs in pipe_get_tile_raw(), pipe_put_tile_raw()
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 7 Aug 2008 01:15:10 +0000 (19:15 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 7 Aug 2008 01:15:10 +0000 (19:15 -0600)
commita56ccb90c6a374c86158ac2323f844a4003560fa
tree32c9674ab2d96ad025a3e32b0a9fb5f81f56ee06
parentbe66a8f43172327e3cdde27281e40377cacbb121
gallium: fix clipping/stride bugs in pipe_get_tile_raw(), pipe_put_tile_raw()

We need to compute the default dst_stride and src_stride _before_ clipping.
After clipping, the width value may have changed.
This fixes visible tile glitches in some demos like progs/glsl/texdemo.c
src/gallium/auxiliary/util/p_tile.c