Lines Matching refs:format
57 vk_format_description(bc_info->format);
59 const struct v3dv_format *format = v3dX(get_format)(bc_info->format);
61 /* We use the swizzle in our format table to determine swizzle configuration
65 * Our format table assumes that Reverse happens first and R/B Swap second.
71 if (v3dv_format_swizzle_needs_reverse(format->swizzle) &&
72 v3dv_format_swizzle_needs_rb_swap(format->swizzle)) {
78 memcpy(swizzle, format->swizzle, sizeof (swizzle));
83 if (format->swizzle[i] <= 3)
90 if (vk_format_has_depth(bc_info->format) &&
91 vk_format_has_stencil(bc_info->format)) {
94 } else if (vk_format_is_unorm(bc_info->format)) {
97 } else if (vk_format_is_snorm(bc_info->format)) {
100 } else if (vk_format_is_uint(bc_info->format) &&
104 } else if (vk_format_is_sint(bc_info->format) &&
112 /* convert from float to expected format */
113 if (vk_format_is_srgb(bc_info->format) ||
114 vk_format_is_compressed(bc_info->format)) {
117 } else if (vk_format_is_unorm(bc_info->format)) {
123 if (!vk_format_has_depth(bc_info->format))
135 } else if (vk_format_is_snorm(bc_info->format)) {
153 } else if (vk_format_is_float(bc_info->format)) {
203 * depending on the actual texture format.