Home
last modified time | relevance | path

Searched refs:aspect_mask (Results 1 – 21 of 21) sorted by relevance

/third_party/mesa3d/src/vulkan/util/
Dvk_image.c184 VkImageAspectFlags aspect_mask) in vk_image_usage() argument
186 assert(!(aspect_mask & ~image->aspects)); in vk_image_usage()
206 if (aspect_mask == VK_IMAGE_ASPECT_STENCIL_BIT) { in vk_image_usage()
208 } else if (aspect_mask == (VK_IMAGE_ASPECT_DEPTH_BIT | in vk_image_usage()
242 VkImageAspectFlags aspect_mask) in vk_image_expand_aspect_mask() argument
244 if (aspect_mask == VK_IMAGE_ASPECT_COLOR_BIT) { in vk_image_expand_aspect_mask()
248 assert(aspect_mask && !(aspect_mask & ~image->aspects)); in vk_image_expand_aspect_mask()
249 return aspect_mask; in vk_image_expand_aspect_mask()
Dvk_image.h96 VkImageAspectFlags aspect_mask);
99 VkImageAspectFlags aspect_mask);
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_image.c71 tu6_plane_index(VkFormat format, VkImageAspectFlags aspect_mask) in tu6_plane_index() argument
73 switch (aspect_mask) { in tu6_plane_index()
116 VkImageAspectFlagBits aspect_mask, in tu6_texswiz() argument
138 if (aspect_mask == VK_IMAGE_ASPECT_STENCIL_BIT) { in tu6_texswiz()
209 VkImageAspectFlagBits aspect_mask = pCreateInfo->subresourceRange.aspectMask; in tu_image_view_init() local
221 &image->layout[tu6_plane_index(image->vk_format, aspect_mask)]; in tu_image_view_init()
248 if (aspect_mask != VK_IMAGE_ASPECT_COLOR_BIT) in tu_image_view_init()
249 format = tu6_plane_format(format, tu6_plane_index(format, aspect_mask)); in tu_image_view_init()
268 if (aspect_mask & VK_IMAGE_ASPECT_DEPTH_BIT) in tu_image_view_init()
270 if (aspect_mask == VK_IMAGE_ASPECT_STENCIL_BIT) in tu_image_view_init()
[all …]
Dtu_clear_blit.c238 VkImageAspectFlags aspect_mask, in r2d_setup_common() argument
256 if (aspect_mask == VK_IMAGE_ASPECT_DEPTH_BIT) in r2d_setup_common()
259 if (aspect_mask == VK_IMAGE_ASPECT_STENCIL_BIT) in r2d_setup_common()
297 VkImageAspectFlags aspect_mask, in r2d_setup() argument
307 r2d_setup_common(cmd, cs, vk_format, aspect_mask, blit_param, clear, ubwc, false); in r2d_setup()
971 aspect_write_mask(VkFormat vk_format, VkImageAspectFlags aspect_mask) in aspect_write_mask() argument
974 assert(aspect_mask); in aspect_write_mask()
979 if (aspect_mask == VK_IMAGE_ASPECT_DEPTH_BIT) in aspect_write_mask()
981 if (aspect_mask == VK_IMAGE_ASPECT_STENCIL_BIT) in aspect_write_mask()
991 VkImageAspectFlags aspect_mask, in r3d_setup() argument
[all …]
/third_party/mesa3d/src/amd/vulkan/
Dradv_meta_copy.c90 VkImageAspectFlags aspect_mask) in blit_surf_for_image_level_layer() argument
92 VkFormat format = radv_get_aspect_format(image, aspect_mask); in blit_surf_for_image_level_layer()
105 .aspect_mask = aspect_mask, in blit_surf_for_image_level_layer()
422 unsigned aspect_mask = 1u << i; in copy_image() local
425 .aspectMask = aspect_mask, in copy_image()
Dradv_meta_blit2d.c229 u_foreach_bit(i, dst->aspect_mask) in radv_meta_blit2d_normal_dst()
231 unsigned aspect_mask = 1u << i; in radv_meta_blit2d_normal_dst() local
232 unsigned src_aspect_mask = aspect_mask; in radv_meta_blit2d_normal_dst()
234 if (aspect_mask == VK_IMAGE_ASPECT_STENCIL_BIT) in radv_meta_blit2d_normal_dst()
236 else if (aspect_mask == VK_IMAGE_ASPECT_DEPTH_BIT) in radv_meta_blit2d_normal_dst()
239 src_aspect_mask = src_img->aspect_mask; in radv_meta_blit2d_normal_dst()
247 rects[r].dst_y + rects[r].height, depth_format, &dst_temps, aspect_mask); in radv_meta_blit2d_normal_dst()
260 if (aspect_mask == VK_IMAGE_ASPECT_COLOR_BIT || in radv_meta_blit2d_normal_dst()
261 aspect_mask == VK_IMAGE_ASPECT_PLANE_0_BIT || in radv_meta_blit2d_normal_dst()
262 aspect_mask == VK_IMAGE_ASPECT_PLANE_1_BIT || in radv_meta_blit2d_normal_dst()
[all …]
Dradv_meta_resolve.c702 .aspectMask = dest_iview->aspect_mask, in radv_cmd_buffer_resolve_subpass_hw()
765 if ((src_iview->aspect_mask & VK_IMAGE_ASPECT_DEPTH_BIT) && in radv_cmd_buffer_resolve_subpass()
777 if ((src_iview->aspect_mask & VK_IMAGE_ASPECT_STENCIL_BIT) && in radv_cmd_buffer_resolve_subpass()
881 region.srcSubresource.aspectMask = src_iview->aspect_mask; in radv_decompress_resolve_subpass_src()
Dradv_meta_bufimage.c1410 create_iview(cmd_buffer, src, &src_view, VK_FORMAT_UNDEFINED, src->aspect_mask); in radv_meta_image_to_buffer()
1561 create_iview(cmd_buffer, dst, &dst_view, VK_FORMAT_UNDEFINED, dst->aspect_mask); in radv_meta_buffer_to_image_cs()
1721 u_foreach_bit(i, dst->aspect_mask) { in radv_meta_image_to_image_cs()
1722 unsigned aspect_mask = 1u << i; in radv_meta_image_to_image_cs() local
1724 if (aspect_mask == VK_IMAGE_ASPECT_STENCIL_BIT) in radv_meta_image_to_image_cs()
1726 else if (aspect_mask == VK_IMAGE_ASPECT_DEPTH_BIT) in radv_meta_image_to_image_cs()
1729 create_iview(cmd_buffer, src, &src_view, depth_format, aspect_mask); in radv_meta_image_to_image_cs()
1730 create_iview(cmd_buffer, dst, &dst_view, depth_format, aspect_mask); in radv_meta_image_to_image_cs()
1859 create_iview(cmd_buffer, dst, &dst_iview, VK_FORMAT_UNDEFINED, dst->aspect_mask); in radv_meta_clear_image_cs()
Dradv_meta.h163 VkImageAspectFlags aspect_mask; member
Dradv_image.c1819 bool is_stencil = iview->aspect_mask == VK_IMAGE_ASPECT_STENCIL_BIT; in radv_image_view_make_descriptor()
1956 iview->aspect_mask = pCreateInfo->subresourceRange.aspectMask; in radv_image_view_init()
1972 if (iview->aspect_mask == VK_IMAGE_ASPECT_STENCIL_BIT) { in radv_image_view_init()
1975 } else if (iview->aspect_mask == VK_IMAGE_ASPECT_DEPTH_BIT) { in radv_image_view_init()
2058 iview->aspect_mask == VK_IMAGE_ASPECT_COLOR_BIT) { in radv_image_view_init()
Dradv_meta_blit.c283 switch (src_iview->aspect_mask) { in meta_emit_blit()
389 VkResult ret = build_pipeline(device, src_iview->aspect_mask, in meta_emit_blit()
Dradv_cmd_buffer.c1823 .aspectMask = iview->aspect_mask, in radv_emit_fb_color_state()
2091 .aspectMask = iview->aspect_mask, in radv_update_tc_compat_zrange_metadata()
2116 .aspectMask = iview->aspect_mask, in radv_update_ds_clear_metadata()
2307 .aspectMask = iview->aspect_mask, in radv_update_color_clear_metadata()
2486 assert(iview->aspect_mask & (VK_IMAGE_ASPECT_COLOR_BIT | VK_IMAGE_ASPECT_PLANE_0_BIT | in radv_emit_framebuffer_state()
4062 range.aspectMask = view->aspect_mask; in radv_handle_subpass_image_transition()
4275 if (iview->aspect_mask & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT)) { in radv_cmd_state_setup_attachments()
Dradv_meta_clear.c1859 .aspectMask = iview->aspect_mask, in radv_fast_clear_color()
2399 surf.aspect_mask = range->aspectMask; in radv_cmd_clear_image()
Dradv_private.h2272 VkImageAspectFlags aspect_mask; member
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_image.c242 panvk_plane_index(VkFormat format, VkImageAspectFlags aspect_mask) in panvk_plane_index() argument
244 switch (aspect_mask) { in panvk_plane_index()
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_blit.c449 unsigned aspect_mask = info->mask & (PIPE_MASK_R | PIPE_MASK_ZS); in iris_blit() local
450 while (aspect_mask) { in iris_blit()
451 unsigned aspect = 1 << u_bit_scan(&aspect_mask); in iris_blit()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dvx_formats.c425 VkImageAspectFlags aspect_mask, in v3dX()
437 if (aspect_mask & ds_aspects) { in v3dX()
Dv3dvx_private.h266 VkImageAspectFlags aspect_mask,
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_blit.c541 unsigned aspect_mask = info->mask & (PIPE_MASK_R | PIPE_MASK_ZS); in crocus_blit() local
542 while (aspect_mask) { in crocus_blit()
543 unsigned aspect = 1 << u_bit_scan(&aspect_mask); in crocus_blit()
/third_party/mesa3d/src/intel/vulkan/
Danv_image.c2504 anv_image_aspect_get_planes(VkImageAspectFlags aspect_mask) in anv_image_aspect_get_planes() argument
2506 anv_assert_valid_aspect_set(aspect_mask); in anv_image_aspect_get_planes()
2507 return util_bitcount(aspect_mask); in anv_image_aspect_get_planes()
/third_party/mesa3d/docs/relnotes/
D21.0.0.rst2550 - iris: Blit non-stencil according to aspect_mask
2552 - iris: Blit stencil according to aspect_mask