Home
last modified time | relevance | path

Searched refs:vk_format (Results 1 – 23 of 23) sorted by relevance

/external/mesa3d/src/amd/vulkan/
Dradv_image.c201 VkFormat vk_format, in radv_make_buffer_descriptor() argument
212 desc = vk_format_description(vk_format); in radv_make_buffer_descriptor()
213 first_non_void = vk_format_get_first_non_void_channel(vk_format); in radv_make_buffer_descriptor()
386 VkFormat vk_format, in si_make_texture_descriptor() argument
399 desc = vk_format_description(vk_format); in si_make_texture_descriptor()
408 first_non_void = vk_format_get_first_non_void_channel(vk_format); in si_make_texture_descriptor()
410 num_format = radv_translate_tex_numformat(vk_format, desc, first_non_void); in si_make_texture_descriptor()
415 data_format = radv_translate_tex_dataformat(vk_format, desc, first_non_void); in si_make_texture_descriptor()
422 vk_format == VK_FORMAT_S8_UINT && in si_make_texture_descriptor()
424 if (image->vk_format == VK_FORMAT_D32_SFLOAT_S8_UINT) in si_make_texture_descriptor()
[all …]
Dradv_meta_resolve.c54 create_pass(struct radv_device *device, VkFormat vk_format, VkRenderPass *pass) in create_pass() argument
63 attachments[i].format = vk_format; in create_pass()
308 VkFormat vk_format, in emit_resolve() argument
314 unsigned fs_key = radv_format_meta_fs_key(vk_format); in emit_resolve()
356 if (src_image->vk_format == VK_FORMAT_R16G16_UNORM || in radv_pick_resolve_method_images()
357 src_image->vk_format == VK_FORMAT_R16G16_SNORM) in radv_pick_resolve_method_images()
359 else if (vk_format_is_int(src_image->vk_format)) in radv_pick_resolve_method_images()
452 unsigned fs_key = radv_format_meta_fs_key(dest_image->vk_format); in radv_CmdResolveImage()
505 .format = src_image->vk_format, in radv_CmdResolveImage()
521 .format = dest_image->vk_format, in radv_CmdResolveImage()
[all …]
Dradv_meta_resolve_cs.c357 if (vk_format_is_int(src_iview->image->vk_format)) in emit_resolve()
359 else if (vk_format_is_srgb(src_iview->image->vk_format)) in emit_resolve()
441 .format = src_image->vk_format, in radv_meta_resolve_compute_image()
457 .format = vk_to_non_srgb_format(dest_image->vk_format), in radv_meta_resolve_compute_image()
Dradv_meta_resolve_fs.c421 unsigned fs_key = radv_format_meta_fs_key(dest_iview->vk_format); in emit_resolve()
457 unsigned fs_key = radv_format_meta_fs_key(dest_image->vk_format); in radv_meta_resolve_fragment_image()
512 .format = src_image->vk_format, in radv_meta_resolve_fragment_image()
528 .format = dest_image->vk_format, in radv_meta_resolve_fragment_image()
Dradv_meta_clear.c199 VkFormat vk_format, in create_color_renderpass() argument
208 .format = vk_format, in create_color_renderpass()
342 unsigned fs_key = radv_format_meta_fs_key(iview->vk_format); in emit_color_clear()
720 if (vk_format_aspects(iview->image->vk_format) & VK_IMAGE_ASPECT_STENCIL_BIT) { in emit_fast_htile_clear()
1003 ret = radv_format_pack_clear_color(iview->image->vk_format, in emit_fast_color_clear()
1019 vi_get_fast_clear_parameters(iview->image->vk_format, in emit_fast_color_clear()
1225 .format = iview.vk_format, in radv_clear_image_layer()
1318 VkFormat format = image->vk_format; in radv_cmd_clear_image()
DMakefile.sources69 vk_format.h \
Dradv_meta_copy.c30 const struct vk_format_description *desc = vk_format_description(image->vk_format); in meta_image_block_size()
86 VkFormat format = image->vk_format; in blit_surf_for_image_level_layer()
Dmeson.build94 'vk_format.h',
Dradv_meta_fast_clear.c616 .format = image->vk_format, in radv_emit_color_decompress()
720 .format = image->vk_format, in radv_decompress_dcc_compute()
Dradv_pipeline.c295 static unsigned si_choose_spi_color_format(VkFormat vk_format, in si_choose_spi_color_format() argument
299 const struct vk_format_description *desc = vk_format_description(vk_format); in si_choose_spi_color_format()
310 format = radv_translate_colorformat(vk_format); in si_choose_spi_color_format()
311 ntype = radv_translate_color_numformat(vk_format, desc, in si_choose_spi_color_format()
312 vk_format_get_first_non_void_channel(vk_format)); in si_choose_spi_color_format()
313 swap = radv_translate_colorswap(vk_format, false); in si_choose_spi_color_format()
Dradv_meta_blit.c327 unsigned fs_key = radv_format_meta_fs_key(dest_image->vk_format); in meta_emit_blit()
606 .format = dest_image->vk_format, in radv_CmdBlitImage()
620 .format = src_image->vk_format, in radv_CmdBlitImage()
Dradv_private.h1362 VkFormat vk_format; member
1459 VkFormat vk_format; member
1498 VkFormat vk_format; member
Dradv_meta_blit2d.c240 depth_format = vk_format_stencil_only(dst->image->vk_format); in radv_meta_blit2d_normal_dst()
242 depth_format = vk_format_depth_only(dst->image->vk_format); in radv_meta_blit2d_normal_dst()
263 unsigned fs_key = radv_format_meta_fs_key(dst_temps.iview.vk_format); in radv_meta_blit2d_normal_dst()
Dradv_meta_decompress.c369 .format = image->vk_format, in radv_process_depth_image_inplace()
Dradv_device.c3095 desc = vk_format_description(iview->vk_format); in radv_initialise_color_surface()
3181 ntype = radv_translate_color_numformat(iview->vk_format, in radv_initialise_color_surface()
3183 vk_format_get_first_non_void_channel(iview->vk_format)); in radv_initialise_color_surface()
3184 format = radv_translate_colorformat(iview->vk_format); in radv_initialise_color_surface()
3187 swap = radv_translate_colorswap(iview->vk_format, FALSE); in radv_initialise_color_surface()
3301 switch (iview->image->vk_format) { in radv_initialise_ds_surface()
3325 format = radv_translate_dbformat(iview->image->vk_format); in radv_initialise_ds_surface()
3363 if (iview->vk_format == VK_FORMAT_D16_UNORM && in radv_initialise_ds_surface()
Dradv_cmd_buffer.c1392 VkImageAspectFlags aspects = vk_format_aspects(image->vk_format); in radv_load_depth_clear_regs()
3925 … (pending_clears & vk_format_aspects(image->vk_format)) == vk_format_aspects(image->vk_format) && in radv_handle_depth_image_transition()
3937 uint32_t clear_value = vk_format_is_stencil(image->vk_format) ? 0xfffff30f : 0xfffc000f; in radv_handle_depth_image_transition()
/external/mesa3d/src/intel/vulkan/
Danv_formats.c390 anv_get_format(VkFormat vk_format) in anv_get_format() argument
392 uint32_t enum_offset = VK_ENUM_OFFSET(vk_format); in anv_get_format()
393 uint32_t ext_number = VK_ENUM_EXTENSION(vk_format); in anv_get_format()
411 anv_get_format_plane(const struct gen_device_info *devinfo, VkFormat vk_format, in anv_get_format_plane() argument
414 const struct anv_format *format = anv_get_format(vk_format); in anv_get_format_plane()
422 uint32_t plane = anv_image_aspect_to_plane(vk_format_aspects(vk_format), aspect); in anv_get_format_plane()
428 assert(vk_format_aspects(vk_format) & in anv_get_format_plane()
459 if (vk_format == VK_FORMAT_B4G4R4A4_UNORM_PACK16 && devinfo->gen < 8) { in anv_get_format_plane()
471 VkFormat vk_format, in get_image_format_features() argument
480 const VkImageAspectFlags aspects = vk_format_aspects(vk_format); in get_image_format_features()
[all …]
Danv_image.c302 anv_get_format_plane(&dev->info, image->vk_format, aspect, image->tiling); in make_surface()
544 image->vk_format = pCreateInfo->format; in anv_image_create()
546 image->aspects = vk_format_aspects(image->vk_format); in anv_image_create()
556 const struct anv_format *format = anv_get_format(image->vk_format); in anv_image_create()
1136 iview->vk_format = pCreateInfo->format; in anv_CreateImageView()
Danv_private.h2314 anv_get_format_planes(VkFormat vk_format) in anv_get_format_planes() argument
2316 const struct anv_format *format = anv_get_format(vk_format); in anv_get_format_planes()
2322 anv_get_format_plane(const struct gen_device_info *devinfo, VkFormat vk_format,
2326 anv_get_isl_format(const struct gen_device_info *devinfo, VkFormat vk_format, in anv_get_isl_format() argument
2329 return anv_get_format_plane(devinfo, vk_format, aspect, tiling).isl_format; in anv_get_isl_format()
2368 VkFormat vk_format; member
2649 VkFormat vk_format; member
DgenX_pipeline.c503 VkFormat vk_format = in emit_rs_state() local
505 assert(vk_format_is_depth_or_stencil(vk_format)); in emit_rs_state()
506 if (vk_format_aspects(vk_format) & VK_IMAGE_ASPECT_DEPTH_BIT) { in emit_rs_state()
508 anv_get_isl_format(&pipeline->device->info, vk_format, in emit_rs_state()
Danv_blorp.c362 anv_get_isl_format(&cmd_buffer->device->info, anv_image->vk_format, in copy_buffer_to_image()
501 anv_get_format_plane(&cmd_buffer->device->info, src_image->vk_format, in anv_CmdBlitImage()
504 anv_get_format_plane(&cmd_buffer->device->info, dst_image->vk_format, in anv_CmdBlitImage()
806 anv_get_format_plane(&cmd_buffer->device->info, image->vk_format, in anv_CmdClearColorImage()
DgenX_cmd_buffer.c877 anv_assert(iview->vk_format == att->format); in genX()
/external/mesa3d/src/vulkan/wsi/
Dwsi_common_wayland.c104 wl_drm_format_for_vk_format(VkFormat vk_format, bool alpha) in wl_drm_format_for_vk_format() argument
106 switch (vk_format) { in wl_drm_format_for_vk_format()
575 VkFormat vk_format; member
819 chain->vk_format = pCreateInfo->imageFormat; in wsi_wl_surface_create_swapchain()
820 chain->drm_format = wl_drm_format_for_vk_format(chain->vk_format, alpha); in wsi_wl_surface_create_swapchain()