mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 15:40:11 +01:00
iris: Delete bogus comment about cube array counting.
Both 'z' and 'depth' are counted in slices, according to the Gallium docs (context.rst). In our temporary memory, we allocate `box.depth` slices, so we need to rebase the starting slice (box.z) down to 0, and back again when writing on unmap. There's nothing strange about cubes here.
This commit is contained in:
parent
73709be0c3
commit
5be72d9a20
1 changed files with 1 additions and 5 deletions
|
|
@ -769,11 +769,7 @@ iris_map_tiled_memcpy(struct iris_transfer *map)
|
|||
unsigned x1, x2, y1, y2;
|
||||
tile_extents(surf, &box, xfer->level, &x1, &x2, &y1, &y2);
|
||||
|
||||
/* When transferring cubes, box.depth is counted in cubes, but
|
||||
* box.z is counted in faces. We want to transfer only the
|
||||
* specified face, but for all array elements. So, use 's'
|
||||
* (the zero-based slice count) rather than box.z.
|
||||
*/
|
||||
/* Use 's' rather than 'box.z' to rebase the first slice to 0. */
|
||||
void *ptr = map->ptr + s * xfer->layer_stride;
|
||||
|
||||
isl_memcpy_tiled_to_linear(x1, x2, y1, y2, ptr, src, xfer->stride,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue