summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-06-23 11:27:44 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-06-23 11:28:38 -0600
commit25da42a650048cd960c81af56744e5fdadd923ad (patch)
tree573554699997fc37640c2afc62ffc57f1a2375e3
parentf52ab4cc22bfb6708724f3c3966ce734d605cddd (diff)
gallium: in softpipe_get_tex_surface() use the pitch specified in the softpipe_texture object.
Fixes a pitch/width mix-up.
-rw-r--r--src/gallium/drivers/softpipe/sp_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c
index ef8c5bd6b0c..2ef17a220b4 100644
--- a/src/gallium/drivers/softpipe/sp_texture.c
+++ b/src/gallium/drivers/softpipe/sp_texture.c
@@ -198,7 +198,7 @@ softpipe_get_tex_surface(struct pipe_screen *screen,
ps->cpp = pt->cpp;
ps->width = pt->width[level];
ps->height = pt->height[level];
- ps->pitch = ps->width;
+ ps->pitch = spt->pitch[level];
ps->offset = spt->level_offset[level];
ps->usage = usage;