diff options
author | Marek Olšák <[email protected]> | 2012-07-08 03:18:48 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-07-12 02:08:31 +0200 |
commit | e773a48a3bf9ab839f10794506c0a492b7eab883 (patch) | |
tree | 6c6904d927df772d8354b62c892276581c4ccac6 | |
parent | fe1fd675565231b49d3ac53d0b4bec39d8bc6781 (diff) |
r600g: fix uploading non-zero mipmap levels of depth textures
This fixes piglit/depth-level-clamp.
Reviewed-by: Alex Deucher <[email protected]>
-rw-r--r-- | src/gallium/drivers/r600/r600_texture.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index a6a83cab41a..d16c25294d7 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -926,8 +926,9 @@ void r600_texture_transfer_destroy(struct pipe_context *ctx, u_box_origin_2d(texture->width0, texture->height0, &sbox); - ctx->resource_copy_region(ctx, texture, 0, 0, 0, 0, - &rtransfer->staging->b.b, 0, + ctx->resource_copy_region(ctx, texture, transfer->level, + 0, 0, transfer->box.z, + &rtransfer->staging->b.b, transfer->level, &sbox); } } else if (rtransfer->staging) { |