• Home
  • Raw
  • Download

Lines Matching refs:format

1537 _mesa_get_format_info(gl_format format)  in _mesa_get_format_info()  argument
1539 const struct gl_format_info *info = &format_info[format]; in _mesa_get_format_info()
1540 assert(info->Name == format); in _mesa_get_format_info()
1547 _mesa_get_format_name(gl_format format) in _mesa_get_format_name() argument
1549 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_get_format_name()
1563 _mesa_get_format_bytes(gl_format format) in _mesa_get_format_bytes() argument
1565 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_get_format_bytes()
1568 _mesa_is_format_compressed(format)); in _mesa_get_format_bytes()
1579 _mesa_get_format_bits(gl_format format, GLenum pname) in _mesa_get_format_bits() argument
1581 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_get_format_bits()
1628 _mesa_get_format_max_bits(gl_format format) in _mesa_get_format_max_bits() argument
1630 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_get_format_max_bits()
1653 _mesa_get_format_datatype(gl_format format) in _mesa_get_format_datatype() argument
1655 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_get_format_datatype()
1666 _mesa_get_format_base_format(gl_format format) in _mesa_get_format_base_format() argument
1668 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_get_format_base_format()
1681 _mesa_get_format_block_size(gl_format format, GLuint *bw, GLuint *bh) in _mesa_get_format_block_size() argument
1683 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_get_format_block_size()
1691 _mesa_is_format_compressed(gl_format format) in _mesa_is_format_compressed() argument
1693 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_is_format_compressed()
1702 _mesa_is_format_packed_depth_stencil(gl_format format) in _mesa_is_format_packed_depth_stencil() argument
1704 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_is_format_packed_depth_stencil()
1714 _mesa_is_format_integer_color(gl_format format) in _mesa_is_format_integer_color() argument
1716 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_is_format_integer_color()
1728 _mesa_is_format_unsigned(gl_format format) in _mesa_is_format_unsigned() argument
1730 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_is_format_unsigned()
1740 _mesa_get_format_color_encoding(gl_format format) in _mesa_get_format_color_encoding() argument
1743 switch (format) { in _mesa_get_format_color_encoding()
1765 _mesa_get_srgb_format_linear(gl_format format) in _mesa_get_srgb_format_linear() argument
1767 switch (format) { in _mesa_get_srgb_format_linear()
1769 format = MESA_FORMAT_RGB888; in _mesa_get_srgb_format_linear()
1772 format = MESA_FORMAT_RGBA8888; in _mesa_get_srgb_format_linear()
1775 format = MESA_FORMAT_ARGB8888; in _mesa_get_srgb_format_linear()
1778 format = MESA_FORMAT_L8; in _mesa_get_srgb_format_linear()
1781 format = MESA_FORMAT_AL88; in _mesa_get_srgb_format_linear()
1784 format = MESA_FORMAT_RGB_DXT1; in _mesa_get_srgb_format_linear()
1787 format = MESA_FORMAT_RGBA_DXT1; in _mesa_get_srgb_format_linear()
1790 format = MESA_FORMAT_RGBA_DXT3; in _mesa_get_srgb_format_linear()
1793 format = MESA_FORMAT_RGBA_DXT5; in _mesa_get_srgb_format_linear()
1798 return format; in _mesa_get_srgb_format_linear()
1807 _mesa_get_uncompressed_format(gl_format format) in _mesa_get_uncompressed_format() argument
1809 switch (format) { in _mesa_get_uncompressed_format()
1846 assert(!_mesa_is_format_compressed(format)); in _mesa_get_uncompressed_format()
1848 return format; in _mesa_get_uncompressed_format()
1854 _mesa_format_num_components(gl_format format) in _mesa_format_num_components() argument
1856 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_format_num_components()
1873 _mesa_format_image_size(gl_format format, GLsizei width, in _mesa_format_image_size() argument
1876 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_format_image_size()
1899 _mesa_format_image_size64(gl_format format, GLsizei width, in _mesa_format_image_size64() argument
1902 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_format_image_size64()
1925 _mesa_format_row_stride(gl_format format, GLsizei width) in _mesa_format_row_stride() argument
1927 const struct gl_format_info *info = _mesa_get_format_info(format); in _mesa_format_row_stride()
2061 _mesa_format_to_type_and_comps(gl_format format, in _mesa_format_to_type_and_comps() argument
2064 switch (format) { in _mesa_format_to_type_and_comps()
2530 _mesa_get_format_name(format)); in _mesa_format_to_type_and_comps()
2547 GLenum format, GLenum type, in _mesa_format_matches_format_and_type() argument
2568 if (format == GL_RGBA && type == GL_UNSIGNED_INT_8_8_8_8 && !swapBytes) in _mesa_format_matches_format_and_type()
2571 if (format == GL_RGBA && type == GL_UNSIGNED_INT_8_8_8_8_REV && swapBytes) in _mesa_format_matches_format_and_type()
2574 if (format == GL_RGBA && type == GL_UNSIGNED_BYTE && !littleEndian) in _mesa_format_matches_format_and_type()
2577 if (format == GL_ABGR_EXT && type == GL_UNSIGNED_INT_8_8_8_8_REV in _mesa_format_matches_format_and_type()
2581 if (format == GL_ABGR_EXT && type == GL_UNSIGNED_INT_8_8_8_8 in _mesa_format_matches_format_and_type()
2585 if (format == GL_ABGR_EXT && type == GL_UNSIGNED_BYTE && littleEndian) in _mesa_format_matches_format_and_type()
2591 if (format == GL_RGBA && type == GL_UNSIGNED_INT_8_8_8_8_REV && in _mesa_format_matches_format_and_type()
2595 if (format == GL_RGBA && type == GL_UNSIGNED_INT_8_8_8_8 && swapBytes) in _mesa_format_matches_format_and_type()
2598 if (format == GL_RGBA && type == GL_UNSIGNED_BYTE && littleEndian) in _mesa_format_matches_format_and_type()
2601 if (format == GL_ABGR_EXT && type == GL_UNSIGNED_INT_8_8_8_8 && in _mesa_format_matches_format_and_type()
2605 if (format == GL_ABGR_EXT && type == GL_UNSIGNED_INT_8_8_8_8_REV && in _mesa_format_matches_format_and_type()
2609 if (format == GL_ABGR_EXT && type == GL_UNSIGNED_BYTE && !littleEndian) in _mesa_format_matches_format_and_type()
2615 if (format == GL_BGRA && type == GL_UNSIGNED_INT_8_8_8_8_REV && in _mesa_format_matches_format_and_type()
2619 if (format == GL_BGRA && type == GL_UNSIGNED_INT_8_8_8_8 && swapBytes) in _mesa_format_matches_format_and_type()
2622 if (format == GL_BGRA && type == GL_UNSIGNED_BYTE && littleEndian) in _mesa_format_matches_format_and_type()
2628 if (format == GL_BGRA && type == GL_UNSIGNED_INT_8_8_8_8 && !swapBytes) in _mesa_format_matches_format_and_type()
2631 if (format == GL_BGRA && type == GL_UNSIGNED_INT_8_8_8_8_REV && in _mesa_format_matches_format_and_type()
2635 if (format == GL_BGRA && type == GL_UNSIGNED_BYTE && !littleEndian) in _mesa_format_matches_format_and_type()
2649 return format == GL_BGR && type == GL_UNSIGNED_BYTE && littleEndian; in _mesa_format_matches_format_and_type()
2652 return format == GL_RGB && type == GL_UNSIGNED_BYTE && littleEndian; in _mesa_format_matches_format_and_type()
2655 return format == GL_RGB && type == GL_UNSIGNED_SHORT_5_6_5 && !swapBytes; in _mesa_format_matches_format_and_type()
2665 return format == GL_BGRA && type == GL_UNSIGNED_SHORT_4_4_4_4_REV && in _mesa_format_matches_format_and_type()
2672 return format == GL_RGBA && type == GL_UNSIGNED_SHORT_5_5_5_1 && in _mesa_format_matches_format_and_type()
2676 return format == GL_BGRA && type == GL_UNSIGNED_SHORT_1_5_5_5_REV && in _mesa_format_matches_format_and_type()
2685 return format == GL_LUMINANCE_ALPHA && type == GL_UNSIGNED_BYTE && littleEndian; in _mesa_format_matches_format_and_type()
2690 … return format == GL_LUMINANCE_ALPHA && type == GL_UNSIGNED_SHORT && littleEndian && !swapBytes; in _mesa_format_matches_format_and_type()
2695 return format == GL_RGB && type == GL_UNSIGNED_BYTE_3_3_2; in _mesa_format_matches_format_and_type()
2698 return format == GL_ALPHA && type == GL_UNSIGNED_BYTE; in _mesa_format_matches_format_and_type()
2700 return format == GL_ALPHA && type == GL_UNSIGNED_SHORT && in _mesa_format_matches_format_and_type()
2703 return format == GL_LUMINANCE && type == GL_UNSIGNED_BYTE; in _mesa_format_matches_format_and_type()
2705 return format == GL_LUMINANCE && type == GL_UNSIGNED_SHORT && in _mesa_format_matches_format_and_type()
2708 return format == GL_INTENSITY && type == GL_UNSIGNED_BYTE; in _mesa_format_matches_format_and_type()
2710 return format == GL_INTENSITY && type == GL_UNSIGNED_SHORT && in _mesa_format_matches_format_and_type()
2718 return format == GL_RED && type == GL_UNSIGNED_BYTE; in _mesa_format_matches_format_and_type()
2720 return format == GL_RG && type == GL_UNSIGNED_BYTE && littleEndian; in _mesa_format_matches_format_and_type()
2725 return format == GL_RED && type == GL_UNSIGNED_SHORT && littleEndian && in _mesa_format_matches_format_and_type()
2728 return format == GL_RG && type == GL_UNSIGNED_SHORT && littleEndian && in _mesa_format_matches_format_and_type()
2734 return format == GL_BGRA && type == GL_UNSIGNED_INT_2_10_10_10_REV && in _mesa_format_matches_format_and_type()
2738 return format == GL_DEPTH_STENCIL && type == GL_UNSIGNED_INT_24_8 && in _mesa_format_matches_format_and_type()
2745 return format == GL_DEPTH_COMPONENT && type == GL_UNSIGNED_SHORT && in _mesa_format_matches_format_and_type()
2752 return format == GL_DEPTH_COMPONENT && type == GL_UNSIGNED_INT && in _mesa_format_matches_format_and_type()
2756 return format == GL_STENCIL_INDEX && type == GL_UNSIGNED_BYTE; in _mesa_format_matches_format_and_type()
2778 return format == GL_RGBA && type == GL_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2780 return format == GL_RGBA && type == GL_HALF_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2783 return format == GL_RGB && type == GL_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2785 return format == GL_RGB && type == GL_HALF_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2788 return format == GL_ALPHA && type == GL_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2790 return format == GL_ALPHA && type == GL_HALF_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2793 return format == GL_LUMINANCE && type == GL_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2795 return format == GL_LUMINANCE && type == GL_HALF_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2798 return format == GL_LUMINANCE_ALPHA && type == GL_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2800 return format == GL_LUMINANCE_ALPHA && type == GL_HALF_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2803 return format == GL_INTENSITY && type == GL_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2805 return format == GL_INTENSITY && type == GL_HALF_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2808 return format == GL_RED && type == GL_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2810 return format == GL_RED && type == GL_HALF_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2813 return format == GL_RG && type == GL_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2815 return format == GL_RG && type == GL_HALF_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()
2885 if (format == GL_RGBA && type == GL_BYTE && !littleEndian) in _mesa_format_matches_format_and_type()
2888 if (format == GL_ABGR_EXT && type == GL_BYTE && littleEndian) in _mesa_format_matches_format_and_type()
2894 if (format == GL_RGBA && type == GL_BYTE && littleEndian) in _mesa_format_matches_format_and_type()
2897 if (format == GL_ABGR_EXT && type == GL_BYTE && !littleEndian) in _mesa_format_matches_format_and_type()
2937 return (format == GL_BGRA_INTEGER_EXT && in _mesa_format_matches_format_and_type()
2942 return (format == GL_RGBA_INTEGER_EXT && in _mesa_format_matches_format_and_type()
2947 return format == GL_RGB && type == GL_UNSIGNED_INT_5_9_9_9_REV && in _mesa_format_matches_format_and_type()
2951 return format == GL_RGB && type == GL_UNSIGNED_INT_10F_11F_11F_REV && in _mesa_format_matches_format_and_type()
2955 return format == GL_DEPTH_COMPONENT && type == GL_FLOAT && !swapBytes; in _mesa_format_matches_format_and_type()