Lines Matching defs:format

125 get_media_compression_format(enum isl_format format,
136 switch (format) {
139 assert((isl_format_get_aux_map_encoding(format) & 0xf0) == 0);
142 return (plane_bpb == 16) << 4 | isl_format_get_aux_map_encoding(format);
147 assert((isl_format_get_aux_map_encoding(format) & 0xf0) == 0);
150 return (plane_bpb == 32) << 4 | isl_format_get_aux_map_encoding(format);
152 return isl_format_get_aux_map_encoding(format);
166 assert(isl_format_supports_rendering(dev->info, info->view->format));
168 assert(isl_format_supports_sampling(dev->info, info->view->format));
173 * format if the Surface Type is SURFTYPE_1D
176 assert(!isl_format_is_compressed(info->view->format));
178 if (isl_format_is_compressed(info->surf->format)) {
179 /* You're not allowed to make a view of a compressed format with any
180 * format other than the surface format. None of the userspace APIs
188 isl_format_get_layout(info->surf->format);
190 isl_format_get_layout(info->surf->format);
196 s.SurfaceFormat = info->view->format;
409 if (isl_format_get_layout(info->view->format)->txc == ISL_TXC_ASTC)
431 !isl_format_has_int_channel(info->view->format);
494 assert(isl_is_pow2(isl_format_get_layout(info->view->format)->bpb));
502 if (isl_format_get_layout(info->view->format)->bpb == 8)
504 if (isl_format_get_layout(info->view->format)->bpb == 16)
592 /* The format must be one of the following: */
593 switch (info->view->format) {
599 assert(!"Incompatible HiZ Sampling format");
607 get_media_compression_format(info->mc_format, info->surf->format);
610 isl_get_render_compression_format(info->surf->format);
617 /* Some CCS aux usages have format restrictions. The Skylake PRM doc for
624 * If CCS_E is in use, the format must support it.
628 assert(isl_format_supports_ccs_e(dev->info, info->view->format));
640 * If CCS_D is in use while rendering, the format must support it. If
641 * it's in use while sampling, the format must support CCS_E.
645 assert(isl_format_supports_ccs_d(dev->info, info->view->format));
648 assert(isl_format_supports_ccs_e(dev->info, info->view->format));
701 switch (info->view->format) {
741 * "Enables Pixel backend hw to convert clear values into native format
765 * gives us 0 or 1 in whatever the surface's format happens to be.
767 if (isl_format_has_int_channel(info->view->format)) {
809 if ((info->format == ISL_FORMAT_RAW ||
810 info->stride_B < isl_format_get_layout(info->format)->bpb / 8) &&
820 if (info->format == ISL_FORMAT_RAW) {
833 s.SurfaceFormat = info->format;
844 assert(info->format == ISL_FORMAT_RAW);
884 if (info->format != ISL_FORMAT_RAW &&
885 info->stride_B == isl_format_get_layout(info->format)->bpb / 8 &&
931 /* We previously had this format set to B8G8R8A8_UNORM but ran into