Lines Matching refs:slice
112 struct v3d_resource_slice *slice = &image->slices[i];
137 slice->tiling = V3D_TILING_RASTER;
143 slice->tiling = V3D_TILING_LINEARTILE;
147 slice->tiling = V3D_TILING_UBLINEAR_1_COLUMN;
151 slice->tiling = V3D_TILING_UBLINEAR_2_COLUMN;
161 slice->ub_pad = v3d_get_ub_pad(image->cpp, level_height);
162 level_height += slice->ub_pad * uif_block_h;
170 slice->tiling = V3D_TILING_UIF_XOR;
172 slice->tiling = V3D_TILING_UIF_NO_XOR;
177 slice->offset = offset;
178 slice->stride = level_width * image->cpp;
179 slice->padded_height = level_height;
180 if (slice->tiling == V3D_TILING_UIF_NO_XOR ||
181 slice->tiling == V3D_TILING_UIF_XOR) {
182 slice->padded_height_of_output_image_in_uif_blocks =
183 slice->padded_height / (2 * v3d_utile_height(image->cpp));
186 slice->size = level_height * slice->stride;
187 uint32_t slice_total_size = slice->size * level_depth;
238 const struct v3d_resource_slice *slice = &image->slices[level];
241 return image->mem_offset + slice->offset + layer * slice->size;
243 return image->mem_offset + slice->offset + layer * image->cube_map_stride;
401 const struct v3d_resource_slice *slice =
405 layout->rowPitch = slice->stride;
410 layout->size = slice->size;
412 /* For 3D images, the size of the slice represents the size of a 2D slice
419 layout->size = slice->size * image->vk.extent.depth;
423 layout->size = prev_slice->offset - slice->offset;