i965: Fix the surface offset calculation for tiled buffers.
authorEric Anholt <eric@anholt.net>
Mon, 4 Jan 2010 16:47:01 +0000 (08:47 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 4 Jan 2010 22:15:12 +0000 (14:15 -0800)
commit63610fae4f46361f2500577a83bf5ac6f9e8b0ac
tree14f15bbfbbc91c2a6b2fafba4751bbe631399d70
parenta160d1c27de8afcf072b4fd438d6a37f16742e75
i965: Fix the surface offset calculation for tiled buffers.

If we ever had a non-tile-aligned tiled renderbuffer, the math was all
off.  Use the existing x,y coordinates instead of trying to
reconstruct them from an incorrectly-calculated offset value.
src/mesa/drivers/dri/i965/brw_wm_surface_state.c