diff options
author | Dave Airlie <[email protected]> | 2011-02-03 13:21:08 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-02-03 14:12:32 +1000 |
commit | d0293290ad620084d490b51693d97731a8935094 (patch) | |
tree | 4b8fc203c03d7e4339598e1512c27e3d1cbc14ae | |
parent | 4629be05098a4cfececcfa98ad88282800ab3a6c (diff) |
r600g: set correct pitch/offset for depth textures in flushed state.
This fixes zreaddraw in tiling mode
-rw-r--r-- | src/gallium/drivers/r600/r600_texture.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index dd280491984..14422bbfe41 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -586,6 +586,9 @@ struct pipe_transfer* r600_texture_get_transfer(struct pipe_context *ctx, FREE(trans); return NULL; } + trans->transfer.stride = rtex->flushed_depth_texture->pitch_in_bytes[level]; + trans->offset = r600_texture_get_offset(rtex->flushed_depth_texture, level, box->z); + return &trans->transfer; } else if (use_staging_texture) { resource.target = PIPE_TEXTURE_2D; resource.format = texture->format; |