• Home
  • Raw
  • Download

Lines Matching refs:iview

2518    struct anv_image_view *iview;  in anv_CreateImageView()  local
2520 iview = vk_image_view_create(&device->vk, pCreateInfo, in anv_CreateImageView()
2521 pAllocator, sizeof(*iview)); in anv_CreateImageView()
2522 if (iview == NULL) in anv_CreateImageView()
2525 iview->image = image; in anv_CreateImageView()
2526 iview->n_planes = anv_image_aspect_get_planes(iview->vk.aspects); in anv_CreateImageView()
2555 if (iview->vk.format == VK_FORMAT_UNDEFINED && conv_format) in anv_CreateImageView()
2556 iview->vk.format = conv_format->vk_format; in anv_CreateImageView()
2561 anv_foreach_image_aspect_bit(iaspect_bit, image, iview->vk.aspects) { in anv_CreateImageView()
2565 anv_aspect_to_plane(iview->vk.aspects, 1UL << iaspect_bit); in anv_CreateImageView()
2567 format = anv_get_format_plane(&device->info, iview->vk.format, in anv_CreateImageView()
2570 iview->planes[vplane].image_plane = iplane; in anv_CreateImageView()
2572 iview->planes[vplane].isl = (struct isl_view) { in anv_CreateImageView()
2574 .base_level = iview->vk.base_mip_level, in anv_CreateImageView()
2575 .levels = iview->vk.level_count, in anv_CreateImageView()
2576 .base_array_layer = iview->vk.base_array_layer, in anv_CreateImageView()
2577 .array_len = iview->vk.layer_count, in anv_CreateImageView()
2579 .r = remap_swizzle(iview->vk.swizzle.r, format.swizzle), in anv_CreateImageView()
2580 .g = remap_swizzle(iview->vk.swizzle.g, format.swizzle), in anv_CreateImageView()
2581 .b = remap_swizzle(iview->vk.swizzle.b, format.swizzle), in anv_CreateImageView()
2582 .a = remap_swizzle(iview->vk.swizzle.a, format.swizzle), in anv_CreateImageView()
2587 iview->planes[vplane].isl.base_array_layer = 0; in anv_CreateImageView()
2588 iview->planes[vplane].isl.array_len = iview->vk.extent.depth; in anv_CreateImageView()
2593 iview->planes[vplane].isl.usage = ISL_SURF_USAGE_CUBE_BIT; in anv_CreateImageView()
2595 iview->planes[vplane].isl.usage = 0; in anv_CreateImageView()
2598 if (iview->vk.usage & VK_IMAGE_USAGE_SAMPLED_BIT || in anv_CreateImageView()
2599 (iview->vk.usage & VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT && in anv_CreateImageView()
2600 !(iview->vk.aspects & VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV))) { in anv_CreateImageView()
2601 iview->planes[vplane].optimal_sampler_surface_state.state = alloc_surface_state(device); in anv_CreateImageView()
2602 iview->planes[vplane].general_sampler_surface_state.state = alloc_surface_state(device); in anv_CreateImageView()
2614 &iview->planes[vplane].isl, in anv_CreateImageView()
2618 &iview->planes[vplane].optimal_sampler_surface_state, in anv_CreateImageView()
2622 &iview->planes[vplane].isl, in anv_CreateImageView()
2626 &iview->planes[vplane].general_sampler_surface_state, in anv_CreateImageView()
2631 if (iview->vk.usage & VK_IMAGE_USAGE_STORAGE_BIT) { in anv_CreateImageView()
2632 iview->planes[vplane].storage_surface_state.state = alloc_surface_state(device); in anv_CreateImageView()
2634 &iview->planes[vplane].isl, in anv_CreateImageView()
2638 &iview->planes[vplane].storage_surface_state, in anv_CreateImageView()
2642 iview->planes[vplane].lowered_storage_surface_state.state = in anv_CreateImageView()
2646 &iview->planes[vplane].isl, in anv_CreateImageView()
2650 &iview->planes[vplane].lowered_storage_surface_state, in anv_CreateImageView()
2651 &iview->planes[vplane].lowered_storage_image_param); in anv_CreateImageView()
2661 iview->planes[vplane].lowered_storage_surface_state.state = in anv_CreateImageView()
2667 *pView = anv_image_view_to_handle(iview); in anv_CreateImageView()
2677 ANV_FROM_HANDLE(anv_image_view, iview, _iview); in anv_DestroyImageView()
2679 if (!iview) in anv_DestroyImageView()
2682 for (uint32_t plane = 0; plane < iview->n_planes; plane++) { in anv_DestroyImageView()
2687 if (iview->planes[plane].optimal_sampler_surface_state.state.offset) { in anv_DestroyImageView()
2689 iview->planes[plane].optimal_sampler_surface_state.state); in anv_DestroyImageView()
2692 if (iview->planes[plane].general_sampler_surface_state.state.offset) { in anv_DestroyImageView()
2694 iview->planes[plane].general_sampler_surface_state.state); in anv_DestroyImageView()
2697 if (iview->planes[plane].storage_surface_state.state.offset) { in anv_DestroyImageView()
2699 iview->planes[plane].storage_surface_state.state); in anv_DestroyImageView()
2702 if (iview->planes[plane].lowered_storage_surface_state.state.offset) { in anv_DestroyImageView()
2704 iview->planes[plane].lowered_storage_surface_state.state); in anv_DestroyImageView()
2708 vk_image_view_destroy(&device->vk, pAllocator, &iview->vk); in anv_DestroyImageView()