r600g: fix uploading non-zero mipmap levels of depth textures

This fixes piglit/depth-level-clamp.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Marek Olšák 2012-07-08 03:18:48 +02:00
parent fe1fd67556
commit e773a48a3b

View file

@ -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) {