Lines Matching defs:format

20    enum pipe_format format = vk_format_to_pipe_format(vk_format);
22 .fmt = fd6_vertex_format(format),
23 .swap = fd6_vertex_swap(format),
32 enum pipe_format format = vk_format_to_pipe_format(vk_format);
33 return fd6_vertex_format(format) != FMT6_NONE;
62 tu6_format_color_unchecked(enum pipe_format format, enum a6xx_tile_mode tile_mode)
65 .fmt = fd6_color_format(format, tile_mode),
66 .swap = fd6_color_swap(format, tile_mode),
69 switch (format) {
83 tu6_format_color_supported(enum pipe_format format)
85 return tu6_format_color_unchecked(format, TILE6_LINEAR).fmt != FMT6_NONE;
89 tu6_format_color(enum pipe_format format, enum a6xx_tile_mode tile_mode)
91 struct tu_native_format fmt = tu6_format_color_unchecked(format, tile_mode);
97 tu6_format_texture_unchecked(enum pipe_format format, enum a6xx_tile_mode tile_mode)
100 .fmt = fd6_texture_format(format, tile_mode),
101 .swap = fd6_texture_swap(format, tile_mode),
104 switch (format) {
108 * FMT6_Z24_UNORM_S8_UINT_AS_R8G8B8A8 (blits) for this format, while we use
122 tu6_format_texture(enum pipe_format format, enum a6xx_tile_mode tile_mode)
124 struct tu_native_format fmt = tu6_format_texture_unchecked(format, tile_mode);
130 tu6_format_texture_supported(enum pipe_format format)
132 return tu6_format_texture_unchecked(format, TILE6_LINEAR).fmt != FMT6_NONE;
142 enum pipe_format format = tu_vk_format_to_pipe_format(vk_format);
143 const struct util_format_description *desc = util_format_description(format);
146 bool supported_color = tu6_format_color_supported(format);
147 bool supported_tex = tu6_format_texture_supported(format);
150 if (format == PIPE_FORMAT_NONE ||
214 if (!util_format_is_pure_integer(format))
232 /* We don't actually support tiling for this format, but we need to
244 * The subsampling requirement comes from "If format is a block-compressed
245 * format, then bufferFeatures must not support any features for the
246 * format" plus the specification of subsampled as 2x1 compressed block
247 * format. I couldn't find the citation for planar, but 1D access of
270 * Mandatory format support: depth/stencil with VkImageType
278 /* D32_SFLOAT_S8_UINT is tiled as two images, so no linear format
293 VkFormat format,
305 physical_device, format, props3);
323 mod_props->drmFormatModifierPlaneCount = tu6_plane_count(format);
329 /* note: ubwc_possible() argument values to be ignored except for format */
331 tiling_possible(format) &&
332 ubwc_possible(format, VK_IMAGE_TYPE_2D, 0, 0, physical_device->info, VK_SAMPLE_COUNT_1_BIT, false)) {
335 mod_props->drmFormatModifierPlaneCount = tu6_plane_count(format);
357 tu_physical_device_get_format_properties(physical_device, info->format,
375 !tiling_possible(info->format))
383 if (!ubwc_possible(info->format, info->type, info->usage, info->usage, physical_device->info, sampleCounts, false))
406 vk_format_is_depth_or_stencil(info->format))
452 * created with usage flags that are not supported for the format the image
453 * is created with but are supported for at least one format a VkImageView
458 * e.g. reinterpreted as storage when the original format doesn't allow it.
459 * The user will have to check against the format features anyway.
533 * If handleType is not compatible with the format, type, tiling,