mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
i965: Use offset helper in intel_readpixels_tiled_memcpy()
providing support for isl based. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
b8d63f50ee
commit
5ff1d76caa
1 changed files with 5 additions and 2 deletions
|
|
@ -162,8 +162,11 @@ intel_readpixels_tiled_memcpy(struct gl_context * ctx,
|
|||
return false;
|
||||
}
|
||||
|
||||
xoffset += irb->mt->level[irb->mt_level].slice[irb->mt_layer].x_offset;
|
||||
yoffset += irb->mt->level[irb->mt_level].slice[irb->mt_layer].y_offset;
|
||||
unsigned slice_offset_x, slice_offset_y;
|
||||
intel_miptree_get_image_offset(irb->mt, irb->mt_level, irb->mt_layer,
|
||||
&slice_offset_x, &slice_offset_y);
|
||||
xoffset += slice_offset_x;
|
||||
yoffset += slice_offset_y;
|
||||
|
||||
dst_pitch = _mesa_image_row_stride(pack, width, format, type);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue