Lines Matching refs:format

28 #include "util/format/u_format.h"
159 surf_tmpl.format = src->buffer.b.b.format;
165 surf_tmpl.format = dst->buffer.b.b.format;
217 surf_tmpl.format = texture->buffer.b.b.format;
340 if (util_format_is_depth_and_stencil(dst->buffer.b.b.format))
495 surf_tmpl.format = tex->buffer.b.b.format;
888 unsigned format;
928 assert(!util_format_is_compressed(src->format) && !util_format_is_compressed(dst->format));
929 assert(!util_format_is_subsampled_422(src->format));
934 dst_templ.format = PIPE_FORMAT_R8_UNORM;
935 src_templ.format = PIPE_FORMAT_R8_UNORM;
938 dst_templ.format = PIPE_FORMAT_R8G8_UNORM;
939 src_templ.format = PIPE_FORMAT_R8G8_UNORM;
942 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UNORM;
943 src_templ.format = PIPE_FORMAT_R8G8B8A8_UNORM;
946 dst_templ.format = PIPE_FORMAT_R16G16B16A16_UINT;
947 src_templ.format = PIPE_FORMAT_R16G16B16A16_UINT;
950 dst_templ.format = PIPE_FORMAT_R32G32B32A32_UINT;
951 src_templ.format = PIPE_FORMAT_R32G32B32A32_UINT;
954 fprintf(stderr, "Unhandled format %s with blocksize %u\n",
955 util_format_short_name(src->format), ssrc->surface.bpe);
963 if (util_format_is_snorm(dst_templ.format)) {
964 dst_templ.format = src_templ.format = util_format_snorm_to_sint(dst_templ.format);
967 vi_disable_dcc_if_incompatible_format(sctx, dst, dst_level, dst_templ.format);
968 vi_disable_dcc_if_incompatible_format(sctx, src, src_level, src_templ.format);
992 enum pipe_format format)
1000 info->src.box.z, ~0, sctx->custom_blend_resolve, format);
1013 /* We must only check the swapped format. */
1042 enum pipe_format format = info->src.format;
1052 !util_format_is_pure_integer(format) && !util_format_is_depth_or_stencil(format) &&
1056 /* Hardware MSAA resolve doesn't work if SPI format = NORM16_ABGR and
1057 * the format is R16G16. Use R16A16, which does work.
1059 if (format == PIPE_FORMAT_R16G16_UNORM)
1060 format = PIPE_FORMAT_R16A16_UNORM;
1061 if (format == PIPE_FORMAT_R16G16_SNORM)
1062 format = PIPE_FORMAT_R16A16_SNORM;
1069 resolve_formats_compatible(info->src.format, info->dst.format,
1113 si_do_CB_resolve(sctx, info, info->dst.resource, info->dst.level, info->dst.box.z, format);
1123 templ.format = info->src.resource->format;
1150 si_do_CB_resolve(sctx, info, tmp, 0, 0, format);
1234 info->src.format);
1236 info->dst.format);
1250 enum pipe_format format, unsigned base_level, unsigned last_level,
1261 vi_disable_dcc_if_incompatible_format(sctx, tex, base_level, format);
1272 util_blitter_generate_mipmap(sctx->blitter, tex, format, base_level, last_level, first_layer,