Searched refs:vk_format (Results 1 - 25 of 81) sorted by relevance

1234

/xsrc/external/mit/MesaLib/dist/src/freedreno/vulkan/
H A Dtu_formats.c32 #include "vk_format.h"
37 tu6_format_vtx(VkFormat vk_format) argument
39 enum pipe_format format = vk_format_to_pipe_format(vk_format);
49 tu6_format_vtx_supported(VkFormat vk_format) argument
51 enum pipe_format format = vk_format_to_pipe_format(vk_format);
64 tu_vk_format_to_pipe_format(VkFormat vk_format) argument
66 switch (vk_format) {
76 return vk_format_to_pipe_format(vk_format);
81 tu6_format_color_unchecked(VkFormat vk_format, enum a6xx_tile_mode tile_mode) argument
83 enum pipe_format format = tu_vk_format_to_pipe_format(vk_format);
103 tu6_format_color_supported(VkFormat vk_format) argument
109 tu6_format_color(VkFormat vk_format,enum a6xx_tile_mode tile_mode) argument
117 tu6_format_texture_unchecked(VkFormat vk_format,enum a6xx_tile_mode tile_mode) argument
151 tu6_format_texture(VkFormat vk_format,enum a6xx_tile_mode tile_mode) argument
159 tu6_format_texture_supported(VkFormat vk_format) argument
165 tu_physical_device_get_format_properties(struct tu_physical_device * physical_device,VkFormat vk_format,VkFormatProperties * out_properties) argument
[all...]
H A Dtu_clear_blit.c12 #include "vk_format.h"
182 VkFormat vk_format,
186 struct tu_native_format format = tu6_format_texture(vk_format, TILE6_LINEAR);
192 .srgb = vk_format_is_srgb(vk_format),
221 r2d_dst_buffer(struct tu_cs *cs, VkFormat vk_format, uint64_t va, uint32_t pitch) argument
223 struct tu_native_format format = tu6_format_color(vk_format, TILE6_LINEAR);
229 .srgb = vk_format_is_srgb(vk_format)),
237 VkFormat vk_format,
244 enum a6xx_format format = tu6_base_format(vk_format);
245 enum a6xx_2d_ifmt ifmt = format_to_ifmt(vk_format);
180 r2d_src_buffer(struct tu_cmd_buffer * cmd,struct tu_cs * cs,VkFormat vk_format,uint64_t va,uint32_t pitch,uint32_t width,uint32_t height) argument
235 r2d_setup_common(struct tu_cmd_buffer * cmd,struct tu_cs * cs,VkFormat vk_format,VkImageAspectFlags aspect_mask,unsigned blit_param,bool clear,bool ubwc,bool scissor) argument
294 r2d_setup(struct tu_cmd_buffer * cmd,struct tu_cs * cs,VkFormat vk_format,VkImageAspectFlags aspect_mask,unsigned blit_param,bool clear,bool ubwc,VkSampleCountFlagBits samples) argument
868 r3d_src_buffer(struct tu_cmd_buffer * cmd,struct tu_cs * cs,VkFormat vk_format,uint64_t va,uint32_t pitch,uint32_t width,uint32_t height) argument
956 r3d_dst_buffer(struct tu_cs * cs,VkFormat vk_format,uint64_t va,uint32_t pitch) argument
971 aspect_write_mask(VkFormat vk_format,VkImageAspectFlags aspect_mask) argument
988 r3d_setup(struct tu_cmd_buffer * cmd,struct tu_cs * cs,VkFormat vk_format,VkImageAspectFlags aspect_mask,unsigned blit_param,bool clear,bool ubwc,VkSampleCountFlagBits samples) argument
[all...]
H A Dvk_format.h33 #include <vulkan/util/vk_format.h>
H A Dtu_image.c34 #include "vk_format.h"
221 &image->layout[tu6_plane_index(image->vk_format, aspect_mask)];
448 if (image->vk_format == VK_FORMAT_D32_SFLOAT_S8_UINT) {
577 image->vk_format = pCreateInfo->format;
604 !vk_format_is_depth_or_stencil(image->vk_format)) {
625 if (!ubwc_possible(image->vk_format, pCreateInfo->imageType, pCreateInfo->usage,
633 for (uint32_t i = 0; i < tu6_plane_count(image->vk_format); i++) {
635 VkFormat format = tu6_plane_format(image->vk_format, i);
640 switch (image->vk_format) {
771 &image->layout[tu6_plane_index(image->vk_format, pSubresourc
[all...]
/xsrc/external/mit/MesaLib/dist/src/broadcom/vulkan/
H A Dv3dv_formats.c71 VkFormat vk_format; local in function:v3dv_get_compatible_tfu_format
73 case 16: vk_format = VK_FORMAT_R32G32B32A32_SFLOAT; break;
74 case 8: vk_format = VK_FORMAT_R16G16B16A16_SFLOAT; break;
75 case 4: vk_format = VK_FORMAT_R32_SFLOAT; break;
76 case 2: vk_format = VK_FORMAT_R16_SFLOAT; break;
77 case 1: vk_format = VK_FORMAT_R8_UNORM; break;
82 *out_vk_format = vk_format;
84 const struct v3dv_format *format = v3dv_X(device, get_format)(vk_format);
92 VkFormat vk_format,
99 const VkImageAspectFlags aspects = vk_format_aspects(vk_format);
91 image_format_features(struct v3dv_physical_device * pdevice,VkFormat vk_format,const struct v3dv_format * v3dv_format,VkImageTiling tiling) argument
169 buffer_format_features(VkFormat vk_format,const struct v3dv_format * v3dv_format) argument
217 v3dv_buffer_format_supports_features(struct v3dv_device * device,VkFormat vk_format,VkFormatFeatureFlags features) argument
[all...]
H A Dv3dv_meta_common.h69 VkFormat vk_format; member in struct:v3dv_meta_framebuffer
H A Dv3dvx_meta_common.c258 switch (framebuffer->vk_format) {
366 (framebuffer->vk_format == VK_FORMAT_X8_D24_UNORM_PACK32 ||
367 (framebuffer->vk_format == VK_FORMAT_D24_UNORM_S8_UINT &&
376 needs_rb_swap = format_needs_rb_swap(device, framebuffer->vk_format);
426 (framebuffer->vk_format == VK_FORMAT_X8_D24_UNORM_PACK32 ||
427 (framebuffer->vk_format == VK_FORMAT_D24_UNORM_S8_UINT &&
433 needs_rb_swap = format_needs_rb_swap(device, framebuffer->vk_format);
1099 if (framebuffer->vk_format == VK_FORMAT_D24_UNORM_S8_UINT) {
1123 if (framebuffer->vk_format == VK_FORMAT_D24_UNORM_S8_UINT) {
1242 VkFormat vk_format; local in function:v3dX
[all...]
H A Dv3dvx_private.h265 v3dX(get_internal_type_bpp_for_image_aspects)(VkFormat vk_format,
287 VkFormat vk_format,
H A Dv3dvx_formats.c424 v3dX(get_internal_type_bpp_for_image_aspects)(VkFormat vk_format,
438 switch (vk_format) {
461 const struct v3dv_format *format = v3dX(get_format)(vk_format);
H A Dv3dvx_image.c184 tex.srgb = vk_format_is_srgb(buffer_view->vk_format);
/xsrc/external/mit/MesaLib.old/dist/src/intel/vulkan/
H A Dvk_format_info.h69 android_format_from_vk(unsigned vk_format) argument
71 switch (vk_format) {
H A Danv_formats.c57 .vk_format = __vk_fmt, \
72 .vk_format = __vk_fmt, \
84 .vk_format = __vk_fmt, \
100 .vk_format = __vk_fmt, \
109 .vk_format = VK_FORMAT_UNDEFINED, \
135 .vk_format = __vk_fmt, \
422 anv_get_format(VkFormat vk_format) argument
424 uint32_t enum_offset = VK_ENUM_OFFSET(vk_format);
425 uint32_t ext_number = VK_ENUM_EXTENSION(vk_format);
443 anv_get_format_plane(const struct gen_device_info *devinfo, VkFormat vk_format, argument
510 anv_get_image_format_features(const struct gen_device_info * devinfo,VkFormat vk_format,const struct anv_format * anv_format,VkImageTiling vk_tiling) argument
669 get_buffer_format_features(const struct gen_device_info * devinfo,VkFormat vk_format,const struct anv_format * anv_format) argument
709 get_wsi_format_modifier_properties_list(const struct anv_physical_device * physical_device,VkFormat vk_format,struct wsi_format_modifier_properties_list * list) argument
749 anv_GetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice,VkFormat vk_format,VkFormatProperties * pFormatProperties) argument
[all...]
H A Danv_image.c166 anv_get_isl_format(devinfo, image->vk_format,
317 anv_get_format_plane(&dev->info, image->vk_format, aspect, image->tiling);
583 image->vk_format = pCreateInfo->format;
585 image->aspects = vk_format_aspects(image->vk_format);
606 const struct anv_format *format = anv_get_format(image->vk_format);
671 assert(swapchain_image->vk_format == pCreateInfo->format);
819 VkFormat vk_format = vk_format_from_android(desc.format, desc.usage); local in function:resolve_ahw_image
821 vk_format,
838 image->vk_format = vk_format;
[all...]
/xsrc/external/mit/MesaLib/dist/src/intel/vulkan/
H A Danv_formats.c28 #include "vk_format.h"
58 .vk_format = __vk_fmt, \
73 .vk_format = __vk_fmt, \
85 .vk_format = __vk_fmt, \
101 .vk_format = __vk_fmt, \
110 .vk_format = VK_FORMAT_UNDEFINED, \
136 .vk_format = __vk_fmt, \
430 anv_get_format(VkFormat vk_format) argument
432 uint32_t enum_offset = VK_ENUM_OFFSET(vk_format);
433 uint32_t ext_number = VK_ENUM_EXTENSION(vk_format);
472 anv_get_format_plane(const struct intel_device_info * devinfo,VkFormat vk_format,uint32_t plane,VkImageTiling tiling) argument
536 anv_get_format_aspect(const struct intel_device_info * devinfo,VkFormat vk_format,VkImageAspectFlagBits aspect,VkImageTiling tiling) argument
548 anv_get_image_format_features2(const struct intel_device_info * devinfo,VkFormat vk_format,const struct anv_format * anv_format,VkImageTiling vk_tiling,const struct isl_drm_modifier_info * isl_mod_info) argument
812 get_buffer_format_features2(const struct intel_device_info * devinfo,VkFormat vk_format,const struct anv_format * anv_format) argument
858 get_drm_format_modifier_properties_list(const struct anv_physical_device * physical_device,VkFormat vk_format,VkDrmFormatModifierPropertiesListEXT * list) argument
892 get_drm_format_modifier_properties_list_2(const struct anv_physical_device * physical_device,VkFormat vk_format,VkDrmFormatModifierPropertiesList2EXT * list) argument
924 anv_GetPhysicalDeviceFormatProperties2(VkPhysicalDevice physicalDevice,VkFormat vk_format,VkFormatProperties2 * pFormatProperties) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/amd/vulkan/
H A Dradv_image.c31 #include "vulkan/util/vk_format.h"
36 #include "vk_format.h"
357 image->vk_format == VK_FORMAT_D32_SFLOAT_S8_UINT && image->info.levels > 1)
669 VkFormat vk_format, unsigned offset, unsigned range, uint32_t *state)
678 desc = vk_format_description(vk_format);
679 first_non_void = vk_format_get_first_non_void_channel(vk_format);
699 const struct gfx10_format *fmt = &gfx10_format_table[vk_format_to_pipe_format(vk_format)];
910 bool is_storage_image, VkImageViewType view_type, VkFormat vk_format,
921 desc = vk_format_description(vk_format);
922 img_format = gfx10_format_table[vk_format_to_pipe_format(vk_format)]
668 radv_make_buffer_descriptor(struct radv_device * device,struct radv_buffer * buffer,VkFormat vk_format,unsigned offset,unsigned range,uint32_t * state) argument
909 gfx10_make_texture_descriptor(struct radv_device * device,struct radv_image * image,bool is_storage_image,VkImageViewType view_type,VkFormat vk_format,const VkComponentMapping * mapping,unsigned first_level,unsigned last_level,unsigned first_layer,unsigned last_layer,unsigned width,unsigned height,unsigned depth,uint32_t * state,uint32_t * fmask_state) argument
1029 si_make_texture_descriptor(struct radv_device * device,struct radv_image * image,bool is_storage_image,VkImageViewType view_type,VkFormat vk_format,const VkComponentMapping * mapping,unsigned first_level,unsigned last_level,unsigned first_layer,unsigned last_layer,unsigned width,unsigned height,unsigned depth,uint32_t * state,uint32_t * fmask_state) argument
1219 radv_make_texture_descriptor(struct radv_device * device,struct radv_image * image,bool is_storage_image,VkImageViewType view_type,VkFormat vk_format,const VkComponentMapping * mapping,unsigned first_level,unsigned last_level,unsigned first_layer,unsigned last_layer,unsigned width,unsigned height,unsigned depth,uint32_t * state,uint32_t * fmask_state) argument
1814 radv_image_view_make_descriptor(struct radv_image_view * iview,struct radv_device * device,VkFormat vk_format,const VkComponentMapping * components,bool is_storage_image,bool disable_compression,bool enable_compression,unsigned plane_id,unsigned descriptor_plane_id) argument
[all...]
H A Dradv_meta_resolve.c31 #include "vk_format.h"
50 create_pass(struct radv_device *device, VkFormat vk_format, VkRenderPass *pass) argument
61 attachments[i].format = vk_format;
317 const struct radv_image *dst_image, VkFormat vk_format, const VkOffset2D *dest_offset,
322 unsigned fs_key = radv_format_meta_fs_key(device, vk_format);
456 unsigned fs_key = radv_format_meta_fs_key(device, dst_image->vk_format);
523 .format = src_image->vk_format,
541 .format = dst_image->vk_format,
591 emit_resolve(cmd_buffer, src_image, dst_image, dst_iview.vk_format,
627 radv_meta_resolve_compute_image(cmd_buffer, src_image, src_image->vk_format, src_image_layou
316 emit_resolve(struct radv_cmd_buffer * cmd_buffer,const struct radv_image * src_image,const struct radv_image * dst_image,VkFormat vk_format,const VkOffset2D * dest_offset,const VkExtent2D * resolve_extent) argument
[all...]
H A Dradv_meta_copy.c25 #include "vk_format.h"
30 const struct util_format_description *desc = vk_format_description(image->vk_format);
113 if (image->vk_format == VK_FORMAT_R32G32B32_UINT ||
114 image->vk_format == VK_FORMAT_R32G32B32_SINT ||
115 image->vk_format == VK_FORMAT_R32G32B32_SFLOAT)
119 vk_format_get_blocksizebits(image->vk_format) == 128 &&
120 vk_format_is_compressed(image->vk_format))
H A Dvk_format.h32 #include <vulkan/util/vk_format.h>
/xsrc/external/mit/MesaLib.old/dist/src/amd/vulkan/
H A Dradv_image.c30 #include "vk_format.h"
308 VkFormat vk_format,
319 desc = vk_format_description(vk_format);
320 first_non_void = vk_format_get_first_non_void_channel(vk_format);
495 VkFormat vk_format,
508 desc = vk_format_description(vk_format);
517 first_non_void = vk_format_get_first_non_void_channel(vk_format);
519 num_format = radv_translate_tex_numformat(vk_format, desc, first_non_void);
524 data_format = radv_translate_tex_dataformat(vk_format, desc, first_non_void);
531 vk_format
306 radv_make_buffer_descriptor(struct radv_device * device,struct radv_buffer * buffer,VkFormat vk_format,unsigned offset,unsigned range,uint32_t * state) argument
491 si_make_texture_descriptor(struct radv_device * device,struct radv_image * image,bool is_storage_image,VkImageViewType view_type,VkFormat vk_format,const VkComponentMapping * mapping,unsigned first_level,unsigned last_level,unsigned first_layer,unsigned last_layer,unsigned width,unsigned height,unsigned depth,uint32_t * state,uint32_t * fmask_state) argument
1116 radv_image_view_make_descriptor(struct radv_image_view * iview,struct radv_device * device,VkFormat vk_format,const VkComponentMapping * components,bool is_storage_image,unsigned plane_id,unsigned descriptor_plane_id) argument
[all...]
H A Dradv_meta_resolve.c29 #include "vk_format.h"
54 create_pass(struct radv_device *device, VkFormat vk_format, VkRenderPass *pass) argument
63 attachments[i].format = vk_format;
296 VkFormat vk_format,
302 unsigned fs_key = radv_format_meta_fs_key(vk_format);
344 if (src_image->vk_format == VK_FORMAT_R16G16_UNORM ||
345 src_image->vk_format == VK_FORMAT_R16G16_SNORM)
347 else if (vk_format_is_int(src_image->vk_format))
466 unsigned fs_key = radv_format_meta_fs_key(dest_image->vk_format);
525 .format = src_image->vk_format,
295 emit_resolve(struct radv_cmd_buffer * cmd_buffer,VkFormat vk_format,const VkOffset2D * dest_offset,const VkExtent2D * resolve_extent) argument
[all...]
H A DMakefile.sources74 vk_format.h \
H A Dradv_meta_resolve_cs.c32 #include "vk_format.h"
363 if (vk_format_is_int(src_iview->image->vk_format))
365 else if (vk_format_is_srgb(src_iview->image->vk_format))
372 vk_format_is_int(src_iview->image->vk_format),
373 vk_format_is_srgb(src_iview->image->vk_format),
447 .format = src_image->vk_format,
463 .format = vk_to_non_srgb_format(dest_image->vk_format),
528 .format = src_image->vk_format,
544 .format = vk_to_non_srgb_format(dst_image->vk_format),
H A Dradv_meta_copy.c25 #include "vk_format.h"
30 const struct vk_format_description *desc = vk_format_description(image->vk_format);
110 if (image->vk_format == VK_FORMAT_R32G32B32_UINT ||
111 image->vk_format == VK_FORMAT_R32G32B32_SINT ||
112 image->vk_format == VK_FORMAT_R32G32B32_SFLOAT)
117 vk_format_get_blocksizebits(image->vk_format) == 128 &&
118 vk_format_is_compressed(image->vk_format))
/xsrc/external/mit/MesaLib.old/dist/src/freedreno/vulkan/
H A Dtu_image.c32 #include "vk_format.h"
152 image->vk_format = pCreateInfo->format;
208 iview->vk_format = pCreateInfo->format;
212 iview->vk_format = vk_format_stencil_only(iview->vk_format);
214 iview->vk_format = vk_format_depth_only(iview->vk_format);
295 level->pitch * vk_format_get_blocksize(image->vk_format);
344 view->vk_format = pCreateInfo->format;
/xsrc/external/mit/MesaLib/dist/src/vulkan/wsi/
H A Dwsi_common_wayland.c54 VkFormat vk_format; member in struct:wsi_wl_format
96 if (f->vk_format == format)
137 f->vk_format = format;
406 wl_drm_format_for_vk_format(VkFormat vk_format, bool alpha) argument
408 switch (vk_format) {
455 wl_shm_format_for_vk_format(VkFormat vk_format, bool alpha) argument
457 switch (vk_format) {
824 out_fmt->format = disp_fmt->vk_format;
862 out_fmt->surfaceFormat.format = disp_fmt->vk_format;
953 VkFormat vk_format; member in struct:wsi_wl_swapchain
[all...]

Completed in 28 milliseconds

1234