Lines Matching defs:ivci
606 VkSampler sampler = (surface->base.format == PIPE_FORMAT_Z24X8_UNORM && surface->ivci.format == VK_FORMAT_D32_SFLOAT) ||
607 (surface->base.format == PIPE_FORMAT_Z24_UNORM_S8_UINT && surface->ivci.format == VK_FORMAT_D32_SFLOAT_S8_UINT) ?
710 ((surface->base.format == PIPE_FORMAT_Z24X8_UNORM && surface->ivci.format == VK_FORMAT_D32_SFLOAT) ||
711 (surface->base.format == PIPE_FORMAT_Z24_UNORM_S8_UINT && surface->ivci.format == VK_FORMAT_D32_SFLOAT_S8_UINT)))
878 viewtype_is_cube(const VkImageViewCreateInfo *ivci)
880 return ivci->viewType == VK_IMAGE_VIEW_TYPE_CUBE ||
881 ivci->viewType == VK_IMAGE_VIEW_TYPE_CUBE_ARRAY;
901 VkImageViewCreateInfo ivci;
918 ivci = create_ivci(screen, res, &templ, state->target);
919 ivci.subresourceRange.levelCount = state->u.tex.last_level - state->u.tex.first_level + 1;
920 ivci.subresourceRange.aspectMask = sampler_aspect_from_format(state->format);
922 if (ivci.subresourceRange.aspectMask & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT)) {
931 ivci.components.r = VK_COMPONENT_SWIZZLE_R;
932 ivci.components.g = VK_COMPONENT_SWIZZLE_R;
933 ivci.components.b = VK_COMPONENT_SWIZZLE_R;
934 ivci.components.a = VK_COMPONENT_SWIZZLE_R;
936 ivci.components.r = zink_component_mapping(clamp_zs_swizzle(sampler_view->base.swizzle_r));
937 ivci.components.g = zink_component_mapping(clamp_zs_swizzle(sampler_view->base.swizzle_g));
938 ivci.components.b = zink_component_mapping(clamp_zs_swizzle(sampler_view->base.swizzle_b));
939 ivci.components.a = zink_component_mapping(clamp_zs_swizzle(sampler_view->base.swizzle_a));
952 ivci.components.r = zink_component_mapping(sampler_view->base.swizzle_r);
953 ivci.components.g = zink_component_mapping(sampler_view->base.swizzle_g);
954 ivci.components.b = zink_component_mapping(sampler_view->base.swizzle_b);
955 ivci.components.a = zink_component_mapping(sampler_view->base.swizzle_a);
957 assert(ivci.format);
959 sampler_view->image_view = (struct zink_surface*)zink_get_surface(ctx, pres, &templ, &ivci);
960 if (!screen->info.have_EXT_non_seamless_cube_map && viewtype_is_cube(&sampler_view->image_view->ivci)) {
961 ivci.viewType = VK_IMAGE_VIEW_TYPE_2D_ARRAY;
962 sampler_view->cube_array = (struct zink_surface*)zink_get_surface(ctx, pres, &templ, &ivci);
1597 VkImageViewCreateInfo ivci = create_ivci(screen, res, &tmpl, target);
1598 struct pipe_surface *psurf = zink_get_surface(ctx, view->resource, &tmpl, &ivci);