Lines Matching defs:format

31 #include "util/format/u_format.h"
42 enum isl_format format,
45 if (isl_format_has_int_channel(format)) {
47 isl_format_get_name(format));
52 if (!isl_format_has_color_component(format, i)) {
70 enum isl_format format,
105 isl_format_srgb_to_linear(format)) {
113 if (!crocus_is_color_fast_clear_compatible(ice, format, color))
128 const enum pipe_format format = p_res->format;
130 util_format_description(format);
133 if (util_format_is_intensity(format) ||
134 util_format_is_luminance(format) ||
135 util_format_is_luminance_alpha(format)) {
138 if (util_format_is_intensity(format))
147 if (util_format_is_unorm(format)) {
150 } else if (util_format_is_snorm(format)) {
153 } else if (util_format_is_pure_uint(format)) {
156 format, UTIL_FORMAT_COLORSPACE_RGB, i);
162 } else if (util_format_is_pure_sint(format)) {
165 format, UTIL_FORMAT_COLORSPACE_RGB, i);
172 } else if (format == PIPE_FORMAT_R11G11B10_FLOAT ||
173 format == PIPE_FORMAT_R9G9B9E5_FLOAT) {
180 if (util_format_is_pure_integer(format))
202 enum isl_format format,
210 color = convert_fast_clear_color(ice, res, format, color);
304 * the clear color during the fast clear, if the surface format is of sRGB
305 * type. We use the linear version of the surface format here to prevent
309 blorp_fast_clear(&blorp_batch, &surf, isl_format_srgb_to_linear(format),
331 enum isl_format format,
356 res->surf.format, format, color);
358 fast_clear_color(ice, res, level, box, format, color,
364 crocus_resource_render_aux_usage(ice, res, level, format, false);
376 if (!isl_format_supports_rendering(devinfo, format) &&
377 isl_format_is_rgbx(format))
378 format = isl_format_rgbx_to_rgba(format);
380 blorp_clear(&blorp_batch, &surf, format, swizzle,
432 if (res->base.b.format == PIPE_FORMAT_Z16_UNORM) {
438 * - DevSNB{W/A}]: When depth buffer format is D16_UNORM and the
466 const unsigned nbits = p_res->format == PIPE_FORMAT_Z16_UNORM ? 16 : 24;
468 depth = p_res->format == PIPE_FORMAT_Z32_FLOAT ? depth :
589 crocus_resource_render_aux_usage(ice, z_res, level, z_res->surf.format,
695 true, isurf->view.format, isurf->view.swizzle,
728 if (util_format_is_depth_or_stencil(p_res->format)) {
730 util_format_unpack_description(p_res->format);
746 enum isl_format format = res->surf.format;
748 if (!isl_format_supports_rendering(devinfo, format)) {
749 const struct isl_format_layout *fmtl = isl_format_get_layout(format);
753 case 8: format = ISL_FORMAT_R8_UINT; break;
754 case 16: format = ISL_FORMAT_R8G8_UINT; break;
755 case 24: format = ISL_FORMAT_R8G8B8_UINT; break;
756 case 32: format = ISL_FORMAT_R8G8B8A8_UINT; break;
757 case 48: format = ISL_FORMAT_R16G16B16_UINT; break;
758 case 64: format = ISL_FORMAT_R16G16B16A16_UINT; break;
759 case 96: format = ISL_FORMAT_R32G32B32_UINT; break;
760 case 128: format = ISL_FORMAT_R32G32B32A32_UINT; break;
762 unreachable("Unknown format bpb");
769 isl_color_value_unpack(&color, format, data);
771 clear_color(ice, p_res, level, box, true, format,
805 isurf->view.format, isurf->view.swizzle, *color);
836 assert(util_format_is_depth_or_stencil(psurf->texture->format));