Lines Matching refs:planes

127    return &image->planes[plane].surface;  in get_surface()
136 surf->offset = align_u32(image->planes[plane].size, surf->isl.alignment); in add_surface()
141 if (image->planes[plane].size == 0) in add_surface()
142 image->planes[plane].offset = image->size; in add_surface()
146 image->planes[plane].size = (surf->offset + surf->isl.size) - image->planes[plane].offset; in add_surface()
149 image->planes[plane].alignment = MAX2(image->planes[plane].alignment, in add_surface()
235 assert(image->planes[plane].aux_surface.isl.size > 0 && in add_fast_clear_state_buffer()
250 assert((image->planes[plane].offset + image->planes[plane].size) % 4 == 0); in add_fast_clear_state_buffer()
254 assert(image->planes[plane].size == in add_fast_clear_state_buffer()
255 (image->planes[plane].offset + image->planes[plane].size)); in add_fast_clear_state_buffer()
258 (image->planes[plane].offset + image->planes[plane].size)); in add_fast_clear_state_buffer()
270 image->planes[plane].fast_clear_state_offset = in add_fast_clear_state_buffer()
271 image->planes[plane].offset + image->planes[plane].size; in add_fast_clear_state_buffer()
273 image->planes[plane].size += plane_state_size; in add_fast_clear_state_buffer()
303 struct anv_surface *anv_surf = &image->planes[plane].surface; in make_surface()
341 image->planes[plane].aux_usage = ISL_AUX_USAGE_NONE; in make_surface()
353 ok = isl_surf_init(&dev->isl_dev, &image->planes[plane].shadow_surface.isl, in make_surface()
372 add_surface(image, &image->planes[plane].shadow_surface, plane); in make_surface()
398 assert(image->planes[plane].aux_surface.isl.size == 0); in make_surface()
400 &image->planes[plane].surface.isl, in make_surface()
401 &image->planes[plane].aux_surface.isl); in make_surface()
403 add_surface(image, &image->planes[plane].aux_surface, plane); in make_surface()
404 image->planes[plane].aux_usage = ISL_AUX_USAGE_HIZ; in make_surface()
424 assert(image->planes[plane].aux_surface.isl.size == 0); in make_surface()
426 &image->planes[plane].surface.isl, in make_surface()
427 &image->planes[plane].aux_surface.isl, 0); in make_surface()
442 image->planes[plane].aux_surface.isl.size = 0; in make_surface()
446 add_surface(image, &image->planes[plane].aux_surface, plane); in make_surface()
459 image->planes[plane].aux_usage = ISL_AUX_USAGE_CCS_E; in make_surface()
465 assert(image->planes[plane].aux_surface.isl.size == 0); in make_surface()
467 &image->planes[plane].surface.isl, in make_surface()
468 &image->planes[plane].aux_surface.isl); in make_surface()
470 add_surface(image, &image->planes[plane].aux_surface, plane); in make_surface()
472 image->planes[plane].aux_usage = ISL_AUX_USAGE_MCS; in make_surface()
476 assert((image->planes[plane].offset + image->planes[plane].size) == image->size); in make_surface()
481 assert((MAX2(image->planes[plane].surface.offset, in make_surface()
482 image->planes[plane].aux_surface.offset) + in make_surface()
483 (image->planes[plane].aux_surface.isl.size > 0 ? in make_surface()
484 image->planes[plane].aux_surface.isl.size : in make_surface()
485 image->planes[plane].surface.isl.size)) <= in make_surface()
486 (image->planes[plane].offset + image->planes[plane].size)); in make_surface()
488 if (image->planes[plane].aux_surface.isl.size) { in make_surface()
491 assert(image->planes[plane].fast_clear_state_offset < in make_surface()
492 (image->planes[plane].offset + image->planes[plane].size)); in make_surface()
617 if (image->planes[p].bo_is_owned) { in anv_DestroyImage()
618 assert(image->planes[p].bo != NULL); in anv_DestroyImage()
619 anv_bo_cache_release(device, &device->bo_cache, image->planes[p].bo); in anv_DestroyImage()
632 assert(!image->planes[plane].bo_is_owned); in anv_image_bind_memory_plane()
635 image->planes[plane].bo = NULL; in anv_image_bind_memory_plane()
636 image->planes[plane].bo_offset = 0; in anv_image_bind_memory_plane()
640 image->planes[plane].bo = memory->bo; in anv_image_bind_memory_plane()
641 image->planes[plane].bo_offset = memory_offset; in anv_image_bind_memory_plane()
766 if (image->planes[plane].aux_surface.isl.size == 0) in anv_layout_to_aux_usage()
779 return image->planes[plane].aux_usage; in anv_layout_to_aux_usage()
904 const struct anv_surface *surface = &image->planes[plane].surface, in anv_image_fill_surface_state()
905 *aux_surface = &image->planes[plane].aux_surface; in anv_image_fill_surface_state()
915 if (image->planes[plane].shadow_surface.isl.size > 0 && in anv_image_fill_surface_state()
920 assert(image->planes[plane].shadow_surface.isl.tiling != ISL_TILING_LINEAR); in anv_image_fill_surface_state()
921 surface = &image->planes[plane].shadow_surface; in anv_image_fill_surface_state()
936 const uint64_t address = image->planes[plane].bo_offset + surface->offset; in anv_image_fill_surface_state()
938 0 : (image->planes[plane].bo_offset + aux_surface->offset); in anv_image_fill_surface_state()
1157 iview->planes[vplane].image_plane = iplane; in anv_CreateImageView()
1159 iview->planes[vplane].isl = (struct isl_view) { in anv_CreateImageView()
1178 iview->planes[vplane].isl.base_array_layer = 0; in anv_CreateImageView()
1179 iview->planes[vplane].isl.array_len = iview->extent.depth; in anv_CreateImageView()
1184 iview->planes[vplane].isl.usage = ISL_SURF_USAGE_CUBE_BIT; in anv_CreateImageView()
1186 iview->planes[vplane].isl.usage = 0; in anv_CreateImageView()
1192 iview->planes[vplane].optimal_sampler_surface_state.state = alloc_surface_state(device); in anv_CreateImageView()
1193 iview->planes[vplane].general_sampler_surface_state.state = alloc_surface_state(device); in anv_CreateImageView()
1203 &iview->planes[vplane].isl, in anv_CreateImageView()
1207 &iview->planes[vplane].optimal_sampler_surface_state, in anv_CreateImageView()
1211 &iview->planes[vplane].isl, in anv_CreateImageView()
1215 &iview->planes[vplane].general_sampler_surface_state, in anv_CreateImageView()
1221 iview->planes[vplane].storage_surface_state.state = alloc_surface_state(device); in anv_CreateImageView()
1222 iview->planes[vplane].writeonly_storage_surface_state.state = alloc_surface_state(device); in anv_CreateImageView()
1225 &iview->planes[vplane].isl, in anv_CreateImageView()
1229 &iview->planes[vplane].storage_surface_state, in anv_CreateImageView()
1230 &iview->planes[vplane].storage_image_param); in anv_CreateImageView()
1233 &iview->planes[vplane].isl, in anv_CreateImageView()
1237 &iview->planes[vplane].writeonly_storage_surface_state, in anv_CreateImageView()
1260 if (iview->planes[plane].optimal_sampler_surface_state.state.alloc_size > 0) { in anv_DestroyImageView()
1262 iview->planes[plane].optimal_sampler_surface_state.state); in anv_DestroyImageView()
1265 if (iview->planes[plane].general_sampler_surface_state.state.alloc_size > 0) { in anv_DestroyImageView()
1267 iview->planes[plane].general_sampler_surface_state.state); in anv_DestroyImageView()
1270 if (iview->planes[plane].storage_surface_state.state.alloc_size > 0) { in anv_DestroyImageView()
1272 iview->planes[plane].storage_surface_state.state); in anv_DestroyImageView()
1275 if (iview->planes[plane].writeonly_storage_surface_state.state.alloc_size > 0) { in anv_DestroyImageView()
1277 iview->planes[plane].writeonly_storage_surface_state.state); in anv_DestroyImageView()
1438 return &image->planes[plane].surface; in anv_image_get_surface_for_aspect_mask()