summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-12-19 11:49:56 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2007-12-19 11:49:56 +0000
commita0ce71b51dd7aac4e219a023bae6fc9771d64c03 (patch)
treeda5a7bb5feeaf4b1ca20a01df3c10ab6a1e05043 /src
parent05ec043d1ca01f0be94e8b8ceaeb730475b308f9 (diff)
downloadexternal_mesa3d-a0ce71b51dd7aac4e219a023bae6fc9771d64c03.zip
external_mesa3d-a0ce71b51dd7aac4e219a023bae6fc9771d64c03.tar.gz
external_mesa3d-a0ce71b51dd7aac4e219a023bae6fc9771d64c03.tar.bz2
965: pitch is in bytes not pixels
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/i965simple/brw_wm_surface_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/i965simple/brw_wm_surface_state.c b/src/mesa/pipe/i965simple/brw_wm_surface_state.c
index 1eb11cb..69b6202 100644
--- a/src/mesa/pipe/i965simple/brw_wm_surface_state.c
+++ b/src/mesa/pipe/i965simple/brw_wm_surface_state.c
@@ -210,7 +210,7 @@ static void upload_wm_surfaces(struct brw_context *brw )
surf.ss2.height = pipe_surface->height - 1;
surf.ss3.tile_walk = BRW_TILEWALK_XMAJOR;
surf.ss3.tiled_surface = 0;
- surf.ss3.pitch = pipe_surface->pitch - 1;
+ surf.ss3.pitch = (pipe_surface->pitch * pipe_surface->cpp) - 1;
} else {
surf.ss0.surface_format = BRW_SURFACEFORMAT_B8G8R8A8_UNORM;
surf.ss0.surface_type = BRW_SURFACE_NULL;