Lines Matching refs:table
1679 static gl_pack_ubyte_rgba_func table[MESA_FORMAT_COUNT];
1683 memset(table, 0, sizeof(table));
1685 table[MESA_FORMAT_NONE] = NULL;
1687 table[MESA_FORMAT_RGBA8888] = pack_ubyte_RGBA8888;
1688 table[MESA_FORMAT_RGBA8888_REV] = pack_ubyte_RGBA8888_REV;
1689 table[MESA_FORMAT_ARGB8888] = pack_ubyte_ARGB8888;
1690 table[MESA_FORMAT_ARGB8888_REV] = pack_ubyte_ARGB8888_REV;
1691 table[MESA_FORMAT_RGBX8888] = pack_ubyte_RGBA8888; /* reused */
1692 table[MESA_FORMAT_RGBX8888_REV] = pack_ubyte_RGBA8888_REV; /* reused */
1693 table[MESA_FORMAT_XRGB8888] = pack_ubyte_XRGB8888;
1694 table[MESA_FORMAT_XRGB8888_REV] = pack_ubyte_XRGB8888_REV;
1695 table[MESA_FORMAT_RGB888] = pack_ubyte_RGB888;
1696 table[MESA_FORMAT_BGR888] = pack_ubyte_BGR888;
1697 table[MESA_FORMAT_RGB565] = pack_ubyte_RGB565;
1698 table[MESA_FORMAT_RGB565_REV] = pack_ubyte_RGB565_REV;
1699 table[MESA_FORMAT_ARGB4444] = pack_ubyte_ARGB4444;
1700 table[MESA_FORMAT_ARGB4444_REV] = pack_ubyte_ARGB4444_REV;
1701 table[MESA_FORMAT_RGBA5551] = pack_ubyte_RGBA5551;
1702 table[MESA_FORMAT_ARGB1555] = pack_ubyte_ARGB1555;
1703 table[MESA_FORMAT_ARGB1555_REV] = pack_ubyte_ARGB1555_REV;
1704 table[MESA_FORMAT_AL44] = pack_ubyte_AL44;
1705 table[MESA_FORMAT_AL88] = pack_ubyte_AL88;
1706 table[MESA_FORMAT_AL88_REV] = pack_ubyte_AL88_REV;
1707 table[MESA_FORMAT_AL1616] = pack_ubyte_AL1616;
1708 table[MESA_FORMAT_AL1616_REV] = pack_ubyte_AL1616_REV;
1709 table[MESA_FORMAT_RGB332] = pack_ubyte_RGB332;
1710 table[MESA_FORMAT_A8] = pack_ubyte_A8;
1711 table[MESA_FORMAT_A16] = pack_ubyte_A16;
1712 table[MESA_FORMAT_L8] = pack_ubyte_L8;
1713 table[MESA_FORMAT_L16] = pack_ubyte_L16;
1714 table[MESA_FORMAT_I8] = pack_ubyte_L8; /* reuse pack_ubyte_L8 */
1715 table[MESA_FORMAT_I16] = pack_ubyte_L16; /* reuse pack_ubyte_L16 */
1716 table[MESA_FORMAT_YCBCR] = pack_ubyte_YCBCR;
1717 table[MESA_FORMAT_YCBCR_REV] = pack_ubyte_YCBCR_REV;
1718 table[MESA_FORMAT_R8] = pack_ubyte_R8;
1719 table[MESA_FORMAT_GR88] = pack_ubyte_GR88;
1720 table[MESA_FORMAT_RG88] = pack_ubyte_RG88;
1721 table[MESA_FORMAT_R16] = pack_ubyte_R16;
1722 table[MESA_FORMAT_RG1616] = pack_ubyte_RG1616;
1723 table[MESA_FORMAT_RG1616_REV] = pack_ubyte_RG1616_REV;
1724 table[MESA_FORMAT_ARGB2101010] = pack_ubyte_ARGB2101010;
1725 table[MESA_FORMAT_ABGR2101010_UINT] = pack_ubyte_ABGR2101010_UINT;
1728 table[MESA_FORMAT_Z24_S8] = NULL;
1729 table[MESA_FORMAT_S8_Z24] = NULL;
1730 table[MESA_FORMAT_Z16] = NULL;
1731 table[MESA_FORMAT_X8_Z24] = NULL;
1732 table[MESA_FORMAT_Z24_X8] = NULL;
1733 table[MESA_FORMAT_Z32] = NULL;
1734 table[MESA_FORMAT_S8] = NULL;
1737 table[MESA_FORMAT_SRGB8] = pack_ubyte_SRGB8;
1738 table[MESA_FORMAT_SRGBA8] = pack_ubyte_SRGBA8;
1739 table[MESA_FORMAT_SARGB8] = pack_ubyte_SARGB8;
1740 table[MESA_FORMAT_SL8] = pack_ubyte_SL8;
1741 table[MESA_FORMAT_SLA8] = pack_ubyte_SLA8;
1744 table[MESA_FORMAT_SRGB_DXT1] = NULL; /* pack_ubyte_SRGB_DXT1; */
1745 table[MESA_FORMAT_SRGBA_DXT1] = NULL; /* pack_ubyte_SRGBA_DXT1; */
1746 table[MESA_FORMAT_SRGBA_DXT3] = NULL; /* pack_ubyte_SRGBA_DXT3; */
1747 table[MESA_FORMAT_SRGBA_DXT5] = NULL; /* pack_ubyte_SRGBA_DXT5; */
1749 table[MESA_FORMAT_RGB_FXT1] = NULL; /* pack_ubyte_RGB_FXT1; */
1750 table[MESA_FORMAT_RGBA_FXT1] = NULL; /* pack_ubyte_RGBA_FXT1; */
1751 table[MESA_FORMAT_RGB_DXT1] = NULL; /* pack_ubyte_RGB_DXT1; */
1752 table[MESA_FORMAT_RGBA_DXT1] = NULL; /* pack_ubyte_RGBA_DXT1; */
1753 table[MESA_FORMAT_RGBA_DXT3] = NULL; /* pack_ubyte_RGBA_DXT3; */
1754 table[MESA_FORMAT_RGBA_DXT5] = NULL; /* pack_ubyte_RGBA_DXT5; */
1756 table[MESA_FORMAT_RGBA_FLOAT32] = pack_ubyte_RGBA_FLOAT32;
1757 table[MESA_FORMAT_RGBA_FLOAT16] = pack_ubyte_RGBA_FLOAT16;
1758 table[MESA_FORMAT_RGB_FLOAT32] = pack_ubyte_RGB_FLOAT32;
1759 table[MESA_FORMAT_RGB_FLOAT16] = pack_ubyte_RGB_FLOAT16;
1760 table[MESA_FORMAT_ALPHA_FLOAT32] = pack_ubyte_ALPHA_FLOAT32;
1761 table[MESA_FORMAT_ALPHA_FLOAT16] = pack_ubyte_ALPHA_FLOAT16;
1762 table[MESA_FORMAT_LUMINANCE_FLOAT32] = pack_ubyte_LUMINANCE_FLOAT32;
1763 table[MESA_FORMAT_LUMINANCE_FLOAT16] = pack_ubyte_LUMINANCE_FLOAT16;
1764 table[MESA_FORMAT_LUMINANCE_ALPHA_FLOAT32] = pack_ubyte_LUMINANCE_ALPHA_FLOAT32;
1765 table[MESA_FORMAT_LUMINANCE_ALPHA_FLOAT16] = pack_ubyte_LUMINANCE_ALPHA_FLOAT16;
1766 table[MESA_FORMAT_INTENSITY_FLOAT32] = pack_ubyte_LUMINANCE_FLOAT32;
1767 table[MESA_FORMAT_INTENSITY_FLOAT16] = pack_ubyte_LUMINANCE_FLOAT16;
1768 table[MESA_FORMAT_R_FLOAT32] = pack_ubyte_LUMINANCE_FLOAT32;
1769 table[MESA_FORMAT_R_FLOAT16] = pack_ubyte_LUMINANCE_FLOAT16;
1770 table[MESA_FORMAT_RG_FLOAT32] = pack_ubyte_RG_FLOAT32;
1771 table[MESA_FORMAT_RG_FLOAT16] = pack_ubyte_RG_FLOAT16;
1774 table[MESA_FORMAT_RGBA_INT8] = NULL; /* pack_ubyte_RGBA_INT8 */
1775 table[MESA_FORMAT_RGBA_INT16] = NULL; /* pack_ubyte_RGBA_INT16 */
1776 table[MESA_FORMAT_RGBA_INT32] = NULL; /* pack_ubyte_RGBA_INT32 */
1777 table[MESA_FORMAT_RGBA_UINT8] = NULL; /* pack_ubyte_RGBA_UINT8 */
1778 table[MESA_FORMAT_RGBA_UINT16] = NULL; /* pack_ubyte_RGBA_UINT16 */
1779 table[MESA_FORMAT_RGBA_UINT32] = NULL; /* pack_ubyte_RGBA_UINT32 */
1781 table[MESA_FORMAT_DUDV8] = pack_ubyte_DUDV8;
1783 table[MESA_FORMAT_RGBA_16] = pack_ubyte_RGBA_16;
1786 table[MESA_FORMAT_SIGNED_R8] = NULL;
1787 table[MESA_FORMAT_SIGNED_RG88_REV] = NULL;
1788 table[MESA_FORMAT_SIGNED_RGBX8888] = NULL;
1789 table[MESA_FORMAT_SIGNED_RGBA8888] = NULL;
1790 table[MESA_FORMAT_SIGNED_RGBA8888_REV] = NULL;
1791 table[MESA_FORMAT_SIGNED_R16] = NULL;
1792 table[MESA_FORMAT_SIGNED_GR1616] = NULL;
1793 table[MESA_FORMAT_SIGNED_RGB_16] = NULL;
1794 table[MESA_FORMAT_SIGNED_RGBA_16] = NULL;
1795 table[MESA_FORMAT_SIGNED_A8] = NULL;
1796 table[MESA_FORMAT_SIGNED_L8] = NULL;
1797 table[MESA_FORMAT_SIGNED_AL88] = NULL;
1798 table[MESA_FORMAT_SIGNED_I8] = NULL;
1799 table[MESA_FORMAT_SIGNED_A16] = NULL;
1800 table[MESA_FORMAT_SIGNED_L16] = NULL;
1801 table[MESA_FORMAT_SIGNED_AL1616] = NULL;
1802 table[MESA_FORMAT_SIGNED_I16] = NULL;
1805 table[MESA_FORMAT_RGBA_16] = pack_ubyte_RGBA_16;
1807 table[MESA_FORMAT_RGB9_E5_FLOAT] = pack_ubyte_RGB9_E5_FLOAT;
1808 table[MESA_FORMAT_R11_G11_B10_FLOAT] = pack_ubyte_R11_G11_B10_FLOAT;
1813 return table[format];
1824 static gl_pack_float_rgba_func table[MESA_FORMAT_COUNT];
1828 memset(table, 0, sizeof(table));
1830 table[MESA_FORMAT_NONE] = NULL;
1832 table[MESA_FORMAT_RGBA8888] = pack_float_RGBA8888;
1833 table[MESA_FORMAT_RGBA8888_REV] = pack_float_RGBA8888_REV;
1834 table[MESA_FORMAT_ARGB8888] = pack_float_ARGB8888;
1835 table[MESA_FORMAT_ARGB8888_REV] = pack_float_ARGB8888_REV;
1836 table[MESA_FORMAT_RGBX8888] = pack_float_RGBA8888; /* reused */
1837 table[MESA_FORMAT_RGBX8888_REV] = pack_float_RGBA8888_REV; /* reused */
1838 table[MESA_FORMAT_XRGB8888] = pack_float_XRGB8888;
1839 table[MESA_FORMAT_XRGB8888_REV] = pack_float_XRGB8888_REV;
1840 table[MESA_FORMAT_RGB888] = pack_float_RGB888;
1841 table[MESA_FORMAT_BGR888] = pack_float_BGR888;
1842 table[MESA_FORMAT_RGB565] = pack_float_RGB565;
1843 table[MESA_FORMAT_RGB565_REV] = pack_float_RGB565_REV;
1844 table[MESA_FORMAT_ARGB4444] = pack_float_ARGB4444;
1845 table[MESA_FORMAT_ARGB4444_REV] = pack_float_ARGB4444_REV;
1846 table[MESA_FORMAT_RGBA5551] = pack_float_RGBA5551;
1847 table[MESA_FORMAT_ARGB1555] = pack_float_ARGB1555;
1848 table[MESA_FORMAT_ARGB1555_REV] = pack_float_ARGB1555_REV;
1850 table[MESA_FORMAT_AL44] = pack_float_AL44;
1851 table[MESA_FORMAT_AL88] = pack_float_AL88;
1852 table[MESA_FORMAT_AL88_REV] = pack_float_AL88_REV;
1853 table[MESA_FORMAT_AL1616] = pack_float_AL1616;
1854 table[MESA_FORMAT_AL1616_REV] = pack_float_AL1616_REV;
1855 table[MESA_FORMAT_RGB332] = pack_float_RGB332;
1856 table[MESA_FORMAT_A8] = pack_float_A8;
1857 table[MESA_FORMAT_A16] = pack_float_A16;
1858 table[MESA_FORMAT_L8] = pack_float_L8;
1859 table[MESA_FORMAT_L16] = pack_float_L16;
1860 table[MESA_FORMAT_I8] = pack_float_L8; /* reuse pack_float_L8 */
1861 table[MESA_FORMAT_I16] = pack_float_L16; /* reuse pack_float_L16 */
1862 table[MESA_FORMAT_YCBCR] = pack_float_YCBCR;
1863 table[MESA_FORMAT_YCBCR_REV] = pack_float_YCBCR_REV;
1864 table[MESA_FORMAT_R8] = pack_float_R8;
1865 table[MESA_FORMAT_GR88] = pack_float_GR88;
1866 table[MESA_FORMAT_RG88] = pack_float_RG88;
1867 table[MESA_FORMAT_R16] = pack_float_R16;
1868 table[MESA_FORMAT_RG1616] = pack_float_RG1616;
1869 table[MESA_FORMAT_RG1616_REV] = pack_float_RG1616_REV;
1870 table[MESA_FORMAT_ARGB2101010] = pack_float_ARGB2101010;
1871 table[MESA_FORMAT_ABGR2101010_UINT] = pack_float_ABGR2101010_UINT;
1874 table[MESA_FORMAT_Z24_S8] = NULL;
1875 table[MESA_FORMAT_S8_Z24] = NULL;
1876 table[MESA_FORMAT_Z16] = NULL;
1877 table[MESA_FORMAT_X8_Z24] = NULL;
1878 table[MESA_FORMAT_Z24_X8] = NULL;
1879 table[MESA_FORMAT_Z32] = NULL;
1880 table[MESA_FORMAT_S8] = NULL;
1882 table[MESA_FORMAT_SRGB8] = pack_float_SRGB8;
1883 table[MESA_FORMAT_SRGBA8] = pack_float_SRGBA8;
1884 table[MESA_FORMAT_SARGB8] = pack_float_SARGB8;
1885 table[MESA_FORMAT_SL8] = pack_float_SL8;
1886 table[MESA_FORMAT_SLA8] = pack_float_SLA8;
1889 table[MESA_FORMAT_SRGB_DXT1] = NULL;
1890 table[MESA_FORMAT_SRGBA_DXT1] = NULL;
1891 table[MESA_FORMAT_SRGBA_DXT3] = NULL;
1892 table[MESA_FORMAT_SRGBA_DXT5] = NULL;
1894 table[MESA_FORMAT_RGB_FXT1] = NULL;
1895 table[MESA_FORMAT_RGBA_FXT1] = NULL;
1896 table[MESA_FORMAT_RGB_DXT1] = NULL;
1897 table[MESA_FORMAT_RGBA_DXT1] = NULL;
1898 table[MESA_FORMAT_RGBA_DXT3] = NULL;
1899 table[MESA_FORMAT_RGBA_DXT5] = NULL;
1901 table[MESA_FORMAT_RGBA_FLOAT32] = pack_float_RGBA_FLOAT32;
1902 table[MESA_FORMAT_RGBA_FLOAT16] = pack_float_RGBA_FLOAT16;
1903 table[MESA_FORMAT_RGB_FLOAT32] = pack_float_RGB_FLOAT32;
1904 table[MESA_FORMAT_RGB_FLOAT16] = pack_float_RGB_FLOAT16;
1905 table[MESA_FORMAT_ALPHA_FLOAT32] = pack_float_ALPHA_FLOAT32;
1906 table[MESA_FORMAT_ALPHA_FLOAT16] = pack_float_ALPHA_FLOAT16;
1907 table[MESA_FORMAT_LUMINANCE_FLOAT32] = pack_float_LUMINANCE_FLOAT32;
1908 table[MESA_FORMAT_LUMINANCE_FLOAT16] = pack_float_LUMINANCE_FLOAT16;
1909 table[MESA_FORMAT_LUMINANCE_ALPHA_FLOAT32] = pack_float_LUMINANCE_ALPHA_FLOAT32;
1910 table[MESA_FORMAT_LUMINANCE_ALPHA_FLOAT16] = pack_float_LUMINANCE_ALPHA_FLOAT16;
1912 table[MESA_FORMAT_INTENSITY_FLOAT32] = pack_float_LUMINANCE_FLOAT32;
1913 table[MESA_FORMAT_INTENSITY_FLOAT16] = pack_float_LUMINANCE_FLOAT16;
1914 table[MESA_FORMAT_R_FLOAT32] = pack_float_LUMINANCE_FLOAT32;
1915 table[MESA_FORMAT_R_FLOAT16] = pack_float_LUMINANCE_FLOAT16;
1916 table[MESA_FORMAT_RG_FLOAT32] = pack_float_RG_FLOAT32;
1917 table[MESA_FORMAT_RG_FLOAT16] = pack_float_RG_FLOAT16;
1920 table[MESA_FORMAT_RGBA_INT8] = NULL;
1921 table[MESA_FORMAT_RGBA_INT16] = NULL;
1922 table[MESA_FORMAT_RGBA_INT32] = NULL;
1923 table[MESA_FORMAT_RGBA_UINT8] = NULL;
1924 table[MESA_FORMAT_RGBA_UINT16] = NULL;
1925 table[MESA_FORMAT_RGBA_UINT32] = NULL;
1927 table[MESA_FORMAT_DUDV8] = pack_float_DUDV8;
1929 table[MESA_FORMAT_RGBA_16] = pack_float_RGBA_16;
1931 table[MESA_FORMAT_SIGNED_R8] = pack_float_SIGNED_R8;
1932 table[MESA_FORMAT_SIGNED_RG88_REV] = pack_float_SIGNED_RG88_REV;
1933 table[MESA_FORMAT_SIGNED_RGBX8888] = pack_float_SIGNED_RGBX8888;
1934 table[MESA_FORMAT_SIGNED_RGBA8888] = pack_float_SIGNED_RGBA8888;
1935 table[MESA_FORMAT_SIGNED_RGBA8888_REV] = pack_float_SIGNED_RGBA8888_REV;
1936 table[MESA_FORMAT_SIGNED_R16] = pack_float_SIGNED_R16;
1937 table[MESA_FORMAT_SIGNED_GR1616] = pack_float_SIGNED_GR1616;
1938 table[MESA_FORMAT_SIGNED_RGB_16] = pack_float_SIGNED_RGB_16;
1939 table[MESA_FORMAT_SIGNED_RGBA_16] = pack_float_SIGNED_RGBA_16;
1940 table[MESA_FORMAT_SIGNED_A8] = pack_float_SIGNED_A8;
1941 table
1942 table[MESA_FORMAT_SIGNED_AL88] = pack_float_SIGNED_AL88;
1943 table[MESA_FORMAT_SIGNED_I8] = pack_float_SIGNED_L8; /* reused */
1944 table[MESA_FORMAT_SIGNED_A16] = pack_float_SIGNED_A16;
1945 table[MESA_FORMAT_SIGNED_L16] = pack_float_SIGNED_L16;
1946 table[MESA_FORMAT_SIGNED_AL1616] = pack_float_SIGNED_AL1616;
1947 table[MESA_FORMAT_SIGNED_I16] = pack_float_SIGNED_L16; /* reused */
1949 table[MESA_FORMAT_RGB9_E5_FLOAT] = pack_float_RGB9_E5_FLOAT;
1950 table[MESA_FORMAT_R11_G11_B10_FLOAT] = pack_float_R11_G11_B10_FLOAT;
1955 return table[format];
1963 static pack_float_rgba_row_func table[MESA_FORMAT_COUNT];
1970 memset(table, 0, sizeof(table));
1972 table[MESA_FORMAT_RGBA8888] = pack_row_float_RGBA8888;
1973 table[MESA_FORMAT_RGBA8888_REV] = pack_row_float_RGBA8888_REV;
1974 table[MESA_FORMAT_ARGB8888] = pack_row_float_ARGB8888;
1975 table[MESA_FORMAT_ARGB8888_REV] = pack_row_float_ARGB8888_REV;
1976 table[MESA_FORMAT_RGBX8888] = pack_row_float_RGBA8888; /* reused */
1977 table[MESA_FORMAT_RGBX8888_REV] = pack_row_float_RGBA8888_REV; /* reused */
1978 table[MESA_FORMAT_XRGB8888] = pack_row_float_XRGB8888;
1979 table[MESA_FORMAT_XRGB8888_REV] = pack_row_float_XRGB8888_REV;
1980 table[MESA_FORMAT_RGB888] = pack_row_float_RGB888;
1981 table[MESA_FORMAT_BGR888] = pack_row_float_BGR888;
1982 table[MESA_FORMAT_RGB565] = pack_row_float_RGB565;
1983 table[MESA_FORMAT_RGB565_REV] = pack_row_float_RGB565_REV;
1988 return table[format];
1996 static pack_ubyte_rgba_row_func table[MESA_FORMAT_COUNT];
2003 memset(table, 0, sizeof(table));
2005 table[MESA_FORMAT_RGBA8888] = pack_row_ubyte_RGBA8888;
2006 table[MESA_FORMAT_RGBA8888_REV] = pack_row_ubyte_RGBA8888_REV;
2007 table[MESA_FORMAT_ARGB8888] = pack_row_ubyte_ARGB8888;
2008 table[MESA_FORMAT_ARGB8888_REV] = pack_row_ubyte_ARGB8888_REV;
2009 table[MESA_FORMAT_RGBX8888] = pack_row_ubyte_RGBA8888; /* reused */
2010 table[MESA_FORMAT_RGBX8888_REV] = pack_row_ubyte_RGBA8888_REV; /* reused */
2011 table[MESA_FORMAT_XRGB8888] = pack_row_ubyte_XRGB8888;
2012 table[MESA_FORMAT_XRGB8888_REV] = pack_row_ubyte_XRGB8888_REV;
2013 table[MESA_FORMAT_RGB888] = pack_row_ubyte_RGB888;
2014 table[MESA_FORMAT_BGR888] = pack_row_ubyte_BGR888;
2015 table[MESA_FORMAT_RGB565] = pack_row_ubyte_RGB565;
2016 table[MESA_FORMAT_RGB565_REV] = pack_row_ubyte_RGB565_REV;
2021 return table[format];