Lines Matching refs:slice
101 struct pan_image_slice_layout *slice,
108 slice->crc.stride = tile_count_x * CHECKSUM_BYTES_PER_TILE;
110 return slice->crc.stride * tile_count_y;
198 struct pan_image_slice_layout *slice = &layout->slices[l];
216 slice->offset = offset;
232 slice->line_stride = stride;
233 slice->row_stride = stride * (tile_h >> tile_shift);
235 unsigned slice_one_size = slice->line_stride * effective_height;
239 slice->afbc.header_size =
243 slice->afbc.row_stride =
248 slice->afbc.body_size = slice_one_size;
255 slice->afbc.surface_stride =
256 slice->afbc.header_size;
257 slice->afbc.header_size *= effective_depth;
258 slice->afbc.body_size *= effective_depth;
259 offset += slice->afbc.header_size;
261 slice_one_size += slice->afbc.header_size;
262 slice->afbc.surface_stride = slice_one_size;
269 slice->surface_stride = slice_one_size;
274 slice->size = slice_full_size;
278 slice->crc.size =
279 panfrost_compute_checksum_size(slice, width, height);
282 slice->crc.offset = offset;
283 offset += slice->crc.size;
284 slice->size += slice->crc.size;
286 slice->crc.offset = oob_crc_offset;
287 oob_crc_offset += slice->crc.size;
318 const struct pan_image_slice_layout *slice = &iview->image->layout.slices[level];
327 surf->afbc.header = base + slice->offset +
328 (layer * slice->afbc.surface_stride);
329 surf->afbc.body = base + slice->offset +
330 slice->afbc.header_size +
331 (slice->surface_stride * layer);
337 surf->afbc.body = surf->afbc.header + slice->afbc.header_size;
560 const struct pan_image_slice_layout *slice = &layout->slices[l];
565 *row_stride = PAN_ARCH < 7 ? 0 : slice->afbc.row_stride;
566 *surf_stride = slice->afbc.surface_stride;
568 *row_stride = slice->row_stride;
569 *surf_stride = slice->surface_stride;