Lines Matching defs:fmt
1827 isl_format_get_layout(enum isl_format fmt)
1829 assert(fmt != ISL_FORMAT_UNSUPPORTED);
1830 assert(fmt < ISL_NUM_FORMATS);
1831 return &isl_format_layouts[fmt];
1837 isl_format_get_name(enum isl_format fmt)
1839 assert(fmt != ISL_FORMAT_UNSUPPORTED);
1840 assert(fmt < ISL_NUM_FORMATS);
1841 return isl_format_names + isl_format_name_offsets[fmt];
1867 enum isl_format fmt);
1878 bool isl_format_has_unorm_channel(enum isl_format fmt) ATTRIBUTE_CONST;
1879 bool isl_format_has_snorm_channel(enum isl_format fmt) ATTRIBUTE_CONST;
1880 bool isl_format_has_ufloat_channel(enum isl_format fmt) ATTRIBUTE_CONST;
1881 bool isl_format_has_sfloat_channel(enum isl_format fmt) ATTRIBUTE_CONST;
1882 bool isl_format_has_uint_channel(enum isl_format fmt) ATTRIBUTE_CONST;
1883 bool isl_format_has_sint_channel(enum isl_format fmt) ATTRIBUTE_CONST;
1886 isl_format_has_normalized_channel(enum isl_format fmt)
1888 return isl_format_has_unorm_channel(fmt) ||
1889 isl_format_has_snorm_channel(fmt);
1893 isl_format_has_float_channel(enum isl_format fmt)
1895 return isl_format_has_ufloat_channel(fmt) ||
1896 isl_format_has_sfloat_channel(fmt);
1900 isl_format_has_int_channel(enum isl_format fmt)
1902 return isl_format_has_uint_channel(fmt) ||
1903 isl_format_has_sint_channel(fmt);
1906 bool isl_format_has_color_component(enum isl_format fmt,
1909 unsigned isl_format_get_num_channels(enum isl_format fmt);
1911 uint32_t isl_format_get_depth_format(enum isl_format fmt, bool has_stencil);
1914 isl_format_is_compressed(enum isl_format fmt)
1916 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt);
1922 isl_format_has_bc_compression(enum isl_format fmt)
1924 switch (isl_format_get_layout(fmt)->txc) {
1950 isl_format_is_mcs(enum isl_format fmt)
1952 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt);
1958 isl_format_is_hiz(enum isl_format fmt)
1960 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt);
1966 isl_format_is_planar(enum isl_format fmt)
1968 return fmt == ISL_FORMAT_PLANAR_420_8 ||
1969 fmt == ISL_FORMAT_PLANAR_420_10 ||
1970 fmt == ISL_FORMAT_PLANAR_420_12 ||
1971 fmt == ISL_FORMAT_PLANAR_420_16;
1975 isl_format_is_yuv(enum isl_format fmt)
1977 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt);
1983 isl_format_block_is_1x1x1(enum isl_format fmt)
1985 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt);
1991 isl_format_is_srgb(enum isl_format fmt)
1993 return isl_format_get_layout(fmt)->colorspace == ISL_COLORSPACE_SRGB;
1996 enum isl_format isl_format_srgb_to_linear(enum isl_format fmt);
1999 isl_format_is_rgb(enum isl_format fmt)
2001 if (isl_format_is_yuv(fmt))
2004 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt);
2013 isl_format_is_rgbx(enum isl_format fmt)
2015 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt);
2044 bool isl_is_storage_image_format(enum isl_format fmt);
2048 enum isl_format fmt);
2055 enum isl_format fmt);