mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
r600g: set correct pitch/offset for depth textures in flushed state.
This fixes zreaddraw in tiling mode
This commit is contained in:
parent
4629be0509
commit
d0293290ad
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue