mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
fe1fd67556
commit
e773a48a3b
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue