Lines Matching defs:iview

1485    struct anv_image_view *iview;
1487 iview = vk_zalloc2(&device->alloc, pAllocator, sizeof(*iview), 8,
1489 if (iview == NULL)
1546 iview->image = image;
1553 iview->aspect_mask = remap_aspect_flags(expanded_aspects);
1554 iview->n_planes = anv_image_aspect_get_planes(iview->aspect_mask);
1555 iview->vk_format = pCreateInfo->format;
1563 if (iview->vk_format == VK_FORMAT_UNDEFINED && conv_format)
1564 iview->vk_format = conv_format->vk_format;
1566 iview->extent = (VkExtent3D) {
1580 anv_plane_to_aspect(iview->aspect_mask, vplane);
1582 anv_get_format_plane(&device->info, iview->vk_format,
1585 iview->planes[vplane].image_plane = iplane;
1587 iview->planes[vplane].isl = (struct isl_view) {
1606 iview->planes[vplane].isl.base_array_layer = 0;
1607 iview->planes[vplane].isl.array_len = iview->extent.depth;
1612 iview->planes[vplane].isl.usage = ISL_SURF_USAGE_CUBE_BIT;
1614 iview->planes[vplane].isl.usage = 0;
1619 !(iview->aspect_mask & VK_IMAGE_ASPECT_COLOR_BIT))) {
1620 iview->planes[vplane].optimal_sampler_surface_state.state = alloc_surface_state(device);
1621 iview->planes[vplane].general_sampler_surface_state.state = alloc_surface_state(device);
1631 &iview->planes[vplane].isl,
1635 &iview->planes[vplane].optimal_sampler_surface_state,
1639 &iview->planes[vplane].isl,
1643 &iview->planes[vplane].general_sampler_surface_state,
1649 iview->planes[vplane].storage_surface_state.state = alloc_surface_state(device);
1650 iview->planes[vplane].writeonly_storage_surface_state.state = alloc_surface_state(device);
1653 &iview->planes[vplane].isl,
1657 &iview->planes[vplane].storage_surface_state,
1658 &iview->planes[vplane].storage_image_param);
1661 &iview->planes[vplane].isl,
1665 &iview->planes[vplane].writeonly_storage_surface_state,
1672 *pView = anv_image_view_to_handle(iview);
1682 ANV_FROM_HANDLE(anv_image_view, iview, _iview);
1684 if (!iview)
1687 for (uint32_t plane = 0; plane < iview->n_planes; plane++) {
1688 if (iview->planes[plane].optimal_sampler_surface_state.state.alloc_size > 0) {
1690 iview->planes[plane].optimal_sampler_surface_state.state);
1693 if (iview->planes[plane].general_sampler_surface_state.state.alloc_size > 0) {
1695 iview->planes[plane].general_sampler_surface_state.state);
1698 if (iview->planes[plane].storage_surface_state.state.alloc_size > 0) {
1700 iview->planes[plane].storage_surface_state.state);
1703 if (iview->planes[plane].writeonly_storage_surface_state.state.alloc_size > 0) {
1705 iview->planes[plane].writeonly_storage_surface_state.state);
1709 vk_free2(&device->alloc, pAllocator, iview);