summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Girlin <vadimgirlin@gmail.com>2011-11-12 22:23:45 +0400
committerAlex Deucher <alexander.deucher@amd.com>2011-11-13 17:27:16 -0500
commit3d441153a1ad6367ed8eecb147716a1cc9c1253f (patch)
treecc09c90849883ab6a3319196b4d3024d6f5bc7f0
parentd5e91a2364a497efb75aefe6538e64d4e5ada51a (diff)
r600g: fix cb offset for flushed_depth_texture
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
-rw-r--r--src/gallium/drivers/r600/evergreen_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c
index fa5e5db52d9..2445194135b 100644
--- a/src/gallium/drivers/r600/evergreen_state.c
+++ b/src/gallium/drivers/r600/evergreen_state.c
@@ -1357,7 +1357,7 @@ static void evergreen_cb(struct r600_pipe_context *rctx, struct r600_pipe_state
}
/* XXX quite sure for dx10+ hw don't need any offset hacks */
- offset = r600_texture_get_offset((struct r600_resource_texture *)state->cbufs[cb]->texture,
+ offset = r600_texture_get_offset(rtex,
level, state->cbufs[cb]->u.tex.first_layer);
pitch = rtex->pitch_in_blocks[level] / 8 - 1;
slice = rtex->pitch_in_blocks[level] * surf->aligned_height / 64 - 1;