Lines Matching defs:image

203                              const struct anv_image *image,
210 const uint32_t plane = anv_image_aspect_to_plane(image, aspect);
214 aux_usage = anv_layout_to_aux_usage(&device->info, image,
222 const struct anv_surface *surface = &image->planes[plane].primary_surface;
224 anv_image_address(image, &surface->memory_range);
236 const struct anv_surface *aux_surface = &image->planes[plane].aux_surface;
238 anv_image_address(image, &aux_surface->memory_range);
259 anv_image_get_clear_color_addr(device, image, aspect);
263 anv_image_get_clear_color_addr(device, image, aspect);
274 const struct anv_image *image,
279 const uint32_t plane = anv_image_aspect_to_plane(image, aspect);
280 if (!anv_surface_is_valid(&image->planes[plane].shadow_surface))
283 const struct anv_surface *surface = &image->planes[plane].shadow_surface;
285 anv_image_address(image, &surface->memory_range);
471 } image, buffer, *src, *dst;
478 dst = ℑ
480 src = ℑ
491 &image.surf);
492 image.offset =
494 image.level = region->imageSubresource.mipLevel;
499 image.offset.z = region->imageSubresource.baseArrayLayer;
538 if (&image == dst) {
572 image.offset.z++;
1004 ANV_FROM_HANDLE(anv_image, image, _image);
1017 image, pRanges[r].aspectMask,
1022 anv_get_format_aspect(&cmd_buffer->device->info, image->vk.format,
1023 VK_IMAGE_ASPECT_COLOR_BIT, image->vk.tiling);
1027 vk_image_subresource_layer_count(&image->vk, &pRanges[r]);
1029 vk_image_subresource_level_count(&image->vk, &pRanges[r]);
1033 const unsigned level_width = anv_minify(image->vk.extent.width, level);
1034 const unsigned level_height = anv_minify(image->vk.extent.height, level);
1036 if (image->vk.image_type == VK_IMAGE_TYPE_3D) {
1038 layer_count = anv_minify(image->vk.extent.depth, level);
1041 anv_cmd_buffer_mark_image_written(cmd_buffer, image,
1066 ANV_FROM_HANDLE(anv_image, image, image_h);
1073 if (image->vk.aspects & VK_IMAGE_ASPECT_DEPTH_BIT) {
1075 image, VK_IMAGE_ASPECT_DEPTH_BIT,
1083 if (image->vk.aspects & VK_IMAGE_ASPECT_STENCIL_BIT) {
1085 image, VK_IMAGE_ASPECT_STENCIL_BIT,
1090 get_blorp_surf_for_anv_shadow_image(cmd_buffer->device, image,
1106 vk_image_subresource_layer_count(&image->vk, &pRanges[r]);
1108 vk_image_subresource_level_count(&image->vk, &pRanges[r]);
1112 const unsigned level_width = anv_minify(image->vk.extent.width, level);
1113 const unsigned level_height = anv_minify(image->vk.extent.height, level);
1115 if (image->vk.image_type == VK_IMAGE_TYPE_3D)
1116 layer_count = anv_minify(image->vk.extent.depth, level);
1406 * the source image.
1495 const struct anv_image *image,
1515 image, aspect,
1523 image, aspect, &shadow_surf);
1528 const VkExtent3D extent = vk_image_mip_level_extent(&image->vk, level);
1530 if (image->vk.image_type == VK_IMAGE_TYPE_3D)
1552 const struct anv_image *image,
1559 assert(image->vk.aspects == VK_IMAGE_ASPECT_COLOR_BIT);
1562 assert(image->n_planes == 1);
1568 get_blorp_surf_for_anv_image(cmd_buffer->device, image, aspect,
1572 anv_cmd_buffer_mark_image_written(cmd_buffer, image, aspect, aux_usage,
1587 const struct anv_image *image,
1595 assert(image->vk.aspects & (VK_IMAGE_ASPECT_DEPTH_BIT |
1605 image, VK_IMAGE_ASPECT_DEPTH_BIT,
1613 anv_image_aspect_to_plane(image, VK_IMAGE_ASPECT_STENCIL_BIT);
1615 image, VK_IMAGE_ASPECT_STENCIL_BIT,
1617 image->planes[plane].aux_usage, &stencil);
1650 get_blorp_surf_for_anv_shadow_image(cmd_buffer->device, image,
1670 const struct anv_image *image,
1676 assert(base_layer + layer_count <= anv_image_aux_layers(image, aspect, level));
1677 const uint32_t plane = anv_image_aspect_to_plane(image, aspect);
1686 image, VK_IMAGE_ASPECT_DEPTH_BIT,
1688 image->planes[plane].aux_usage, &surf);
1697 const struct anv_image *image,
1703 assert(image->vk.aspects & (VK_IMAGE_ASPECT_DEPTH_BIT |
1713 anv_image_aspect_to_plane(image, VK_IMAGE_ASPECT_DEPTH_BIT);
1715 anv_image_aux_layers(image, VK_IMAGE_ASPECT_DEPTH_BIT, level));
1717 image, VK_IMAGE_ASPECT_DEPTH_BIT,
1719 image->planes[plane].aux_usage, &depth);
1725 anv_image_aspect_to_plane(image, VK_IMAGE_ASPECT_STENCIL_BIT);
1727 image, VK_IMAGE_ASPECT_STENCIL_BIT,
1729 image->planes[plane].aux_usage, &stencil);
1807 const struct anv_image *image,
1814 assert(image->vk.aspects == VK_IMAGE_ASPECT_COLOR_BIT);
1815 assert(image->vk.samples > 1);
1816 assert(base_layer + layer_count <= anv_image_aux_layers(image, aspect, 0));
1819 assert(image->n_planes == 1);
1829 get_blorp_surf_for_anv_image(cmd_buffer->device, image, aspect,
1871 0, 0, image->vk.extent.width, image->vk.extent.height);
1897 const struct anv_image *image,
1904 assert(image->vk.aspects & VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV);
1905 assert(image->vk.samples == 1);
1906 assert(level < anv_image_aux_levels(image, aspect));
1908 assert(image->n_planes == 1 || level == 0);
1910 anv_image_aux_layers(image, aspect, level));
1912 const uint32_t plane = anv_image_aspect_to_plane(image, aspect);
1922 get_blorp_surf_for_anv_image(cmd_buffer->device, image, aspect,
1924 image->planes[plane].aux_usage,