Lines Matching refs:format

27 #include "util/format/u_format.h"
125 util_format_description(texture->resource.b.b.format);
172 surf_tmpl.format = texture->resource.b.b.format;
179 surf_tmpl.format = flushed_depth_texture->resource.b.b.format;
227 surf_tmpl.format = texture->resource.b.b.format;
358 surf_tmpl.format = rtex->resource.b.b.format;
710 if (util_format_is_compressed(src->format) ||
711 util_format_is_compressed(dst->format)) {
712 unsigned blocksize = util_format_get_blocksize(src->format);
715 src_templ.format = PIPE_FORMAT_R16G16B16A16_UINT; /* 64-bit block */
717 src_templ.format = PIPE_FORMAT_R32G32B32A32_UINT; /* 128-bit block */
718 dst_templ.format = src_templ.format;
720 dst_width = util_format_get_nblocksx(dst->format, dst_width);
721 dst_height = util_format_get_nblocksy(dst->format, dst_height);
722 src_width0 = util_format_get_nblocksx(src->format, src_width0);
723 src_height0 = util_format_get_nblocksy(src->format, src_height0);
724 src_widthFL = util_format_get_nblocksx(src->format, src_widthFL);
725 src_heightFL = util_format_get_nblocksy(src->format, src_heightFL);
727 dstx = util_format_get_nblocksx(dst->format, dstx);
728 dsty = util_format_get_nblocksy(dst->format, dsty);
730 sbox.x = util_format_get_nblocksx(src->format, src_box->x);
731 sbox.y = util_format_get_nblocksy(src->format, src_box->y);
733 sbox.width = util_format_get_nblocksx(src->format, src_box->width);
734 sbox.height = util_format_get_nblocksy(src->format, src_box->height);
740 if (util_format_is_subsampled_422(src->format)) {
742 src_templ.format = PIPE_FORMAT_R8G8B8A8_UINT;
743 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UINT;
745 dst_width = util_format_get_nblocksx(dst->format, dst_width);
746 src_width0 = util_format_get_nblocksx(src->format, src_width0);
747 src_widthFL = util_format_get_nblocksx(src->format, src_widthFL);
749 dstx = util_format_get_nblocksx(dst->format, dstx);
752 sbox.x = util_format_get_nblocksx(src->format, src_box->x);
753 sbox.width = util_format_get_nblocksx(src->format, src_box->width);
756 unsigned blocksize = util_format_get_blocksize(src->format);
760 dst_templ.format = PIPE_FORMAT_R8_UNORM;
761 src_templ.format = PIPE_FORMAT_R8_UNORM;
764 dst_templ.format = PIPE_FORMAT_R8G8_UNORM;
765 src_templ.format = PIPE_FORMAT_R8G8_UNORM;
768 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UNORM;
769 src_templ.format = PIPE_FORMAT_R8G8B8A8_UNORM;
772 dst_templ.format = PIPE_FORMAT_R16G16B16A16_UINT;
773 src_templ.format = PIPE_FORMAT_R16G16B16A16_UINT;
776 dst_templ.format = PIPE_FORMAT_R32G32B32A32_UINT;
777 src_templ.format = PIPE_FORMAT_R32G32B32A32_UINT;
780 fprintf(stderr, "Unhandled format %s with blocksize %u\n",
781 util_format_short_name(src->format), blocksize);
823 enum pipe_format format = info->src.format;
833 !util_format_is_pure_integer(format) &&
834 !util_format_is_depth_or_stencil(format) &&
840 util_is_format_compatible(util_format_description(info->src.format),
841 util_format_description(info->dst.format)) &&
865 format);
875 templ.format = info->src.resource->format;
893 format);