mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
r600g: fix transfer function for tiling.
this makes readback with tiled back work better.
This commit is contained in:
parent
c61b97d504
commit
375613afe3
1 changed files with 3 additions and 2 deletions
|
|
@ -349,8 +349,6 @@ struct pipe_transfer* r600_texture_get_transfer(struct pipe_context *ctx,
|
|||
trans->transfer.sr = sr;
|
||||
trans->transfer.usage = usage;
|
||||
trans->transfer.box = *box;
|
||||
trans->transfer.stride = rtex->pitch_in_bytes[sr.level];
|
||||
trans->offset = r600_texture_get_offset(rtex, sr.level, box->z, sr.face);
|
||||
if (rtex->depth) {
|
||||
r = r600_texture_depth_flush(ctx, texture);
|
||||
if (r < 0) {
|
||||
|
|
@ -398,7 +396,10 @@ struct pipe_transfer* r600_texture_get_transfer(struct pipe_context *ctx,
|
|||
/* Always referenced in the blit. */
|
||||
ctx->flush(ctx, 0, NULL);
|
||||
}
|
||||
return &trans->transfer;
|
||||
}
|
||||
trans->transfer.stride = rtex->pitch_in_bytes[sr.level];
|
||||
trans->offset = r600_texture_get_offset(rtex, sr.level, box->z, sr.face);
|
||||
return &trans->transfer;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue