projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4629be0
)
r600g: set correct pitch/offset for depth textures in flushed state.
author
Dave Airlie
<airlied@redhat.com>
Thu, 3 Feb 2011 03:21:08 +0000
(13:21 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 3 Feb 2011 04:12:32 +0000
(14:12 +1000)
This fixes zreaddraw in tiling mode
src/gallium/drivers/r600/r600_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_texture.c
b/src/gallium/drivers/r600/r600_texture.c
index dd2804919840c232be363176d1a9a3c69068e174..14422bbfe4169b38969535066ee880278423c3b5 100644
(file)
--- 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;