Lines Matching refs:format

25 #include "util/format/u_format.h"
26 #include "util/format/u_format_s3tc.h"
575 * Whether the format matches:
601 enum pipe_format format)
605 util_format_description(format);
610 c = util_format_get_first_non_void_channel(format);
627 if (format == PIPE_FORMAT_R8G8_UNORM)
639 enum pipe_format format,
648 boolean is_color2101010 = format == PIPE_FORMAT_R10G10B10A2_UNORM ||
649 format == PIPE_FORMAT_R10G10B10X2_SNORM ||
650 format == PIPE_FORMAT_B10G10R10A2_UNORM ||
651 format == PIPE_FORMAT_B10G10R10X2_UNORM ||
652 format == PIPE_FORMAT_R10SG10SB10SA2U_NORM;
653 boolean is_ati1n = format == PIPE_FORMAT_RGTC1_UNORM ||
654 format == PIPE_FORMAT_RGTC1_SNORM ||
655 format == PIPE_FORMAT_LATC1_UNORM ||
656 format == PIPE_FORMAT_LATC1_SNORM;
657 boolean is_ati2n = format == PIPE_FORMAT_RGTC2_UNORM ||
658 format == PIPE_FORMAT_RGTC2_SNORM ||
659 format == PIPE_FORMAT_LATC2_UNORM ||
660 format == PIPE_FORMAT_LATC2_SNORM;
661 boolean is_half_float = format == PIPE_FORMAT_R16_FLOAT ||
662 format == PIPE_FORMAT_R16G16_FLOAT ||
663 format == PIPE_FORMAT_R16G16B16_FLOAT ||
664 format == PIPE_FORMAT_R16G16B16A16_FLOAT ||
665 format == PIPE_FORMAT_R16G16B16X16_FLOAT;
686 desc = util_format_description(format);
690 if (!util_format_is_depth_or_stencil(format) &&
693 format != PIPE_FORMAT_R16G16B16A16_FLOAT &&
694 format != PIPE_FORMAT_R16G16B16X16_FLOAT) {
699 if (!util_format_is_depth_or_stencil(format) &&
709 /* Check sampler format support. */
712 format != PIPE_FORMAT_R8G8B8X8_SNORM &&
713 format != PIPE_FORMAT_R16G16B16X16_SNORM &&
718 r300_is_sampler_format_supported(format)) {
722 /* Check colorbuffer format support. */
730 r300_is_colorbuffer_format_supported(format)) {
737 if (r300_is_blending_supported(r300_screen(screen), format)) {
742 /* Check depth-stencil format support. */
744 r300_is_zs_format_supported(format)) {
748 /* Check vertex buffer format support. */
753 r300_translate_vertex_data_type(format) != R300_INVALID_FORMAT) {
758 if (!util_format_is_pure_integer(format)) {
765 if (format == PIPE_FORMAT_R8_UINT ||
766 format == PIPE_FORMAT_R16_UINT ||
767 format == PIPE_FORMAT_R32_UINT)