Mesa (master): r600g: fix regression in r6/7xx since mipmap rework
Dave Airlie
airlied at kemper.freedesktop.org
Tue Feb 15 08:41:00 UTC 2011
Module: Mesa
Branch: master
Commit: 4b81c5f6e1ad73e344b1f1b5d5844297ee7b985a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b81c5f6e1ad73e344b1f1b5d5844297ee7b985a
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Feb 15 18:42:48 2011 +1000
r600g: fix regression in r6/7xx since mipmap rework
I typod this when copy-pasting.
---
src/gallium/drivers/r600/r600_state.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index bd591bd..5e68210 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -709,7 +709,7 @@ static void r600_cb(struct r600_pipe_context *rctx, struct r600_pipe_state *rsta
/* XXX quite sure for dx10+ hw don't need any offset hacks */
offset = r600_texture_get_offset(rtex,
level, state->cbufs[cb]->u.tex.first_layer);
- pitch = rtex->pitch_in_blocks[0] / 8 - 1;
+ pitch = rtex->pitch_in_blocks[level] / 8 - 1;
slice = rtex->pitch_in_blocks[level] * surf->aligned_height / 64 - 1;
ntype = 0;
desc = util_format_description(surf->base.format);
More information about the mesa-commit
mailing list