• Home
  • Raw
  • Download

Lines Matching refs:fmtl

717       const struct isl_format_layout *fmtl = isl_format_get_layout(format);  in isl_format_supports_sampling()  local
721 if (fmtl->txc == ISL_TXC_ETC1 || fmtl->txc == ISL_TXC_ETC2) in isl_format_supports_sampling()
730 const struct isl_format_layout *fmtl = isl_format_get_layout(format); in isl_format_supports_sampling() local
734 if (fmtl->txc == ISL_TXC_ASTC) in isl_format_supports_sampling()
737 const struct isl_format_layout *fmtl = isl_format_get_layout(format); in isl_format_supports_sampling() local
745 if (fmtl->txc == ISL_TXC_ASTC || fmtl->txc == ISL_TXC_FXT1) in isl_format_supports_sampling()
836 const struct isl_format_layout *fmtl = isl_format_get_layout(format); in isl_format_supports_ccs_d() local
838 return fmtl->bpb == 32 || fmtl->bpb == 64 || fmtl->bpb == 128; in isl_format_supports_ccs_d()
951 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt); in isl_format_has_channel_type() local
953 return fmtl->channels.r.type == type || in isl_format_has_channel_type()
954 fmtl->channels.g.type == type || in isl_format_has_channel_type()
955 fmtl->channels.b.type == type || in isl_format_has_channel_type()
956 fmtl->channels.a.type == type || in isl_format_has_channel_type()
957 fmtl->channels.l.type == type || in isl_format_has_channel_type()
958 fmtl->channels.i.type == type || in isl_format_has_channel_type()
959 fmtl->channels.p.type == type; in isl_format_has_channel_type()
1001 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt); in isl_format_has_color_component() local
1002 const uint8_t intensity = fmtl->channels.i.bits; in isl_format_has_color_component()
1003 const uint8_t luminance = fmtl->channels.l.bits; in isl_format_has_color_component()
1007 return (fmtl->channels.r.bits + intensity + luminance) > 0; in isl_format_has_color_component()
1009 return (fmtl->channels.g.bits + intensity + luminance) > 0; in isl_format_has_color_component()
1011 return (fmtl->channels.b.bits + intensity + luminance) > 0; in isl_format_has_color_component()
1013 return (fmtl->channels.a.bits + intensity) > 0; in isl_format_has_color_component()
1023 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt); in isl_format_get_num_channels() local
1025 assert(fmtl->channels.p.bits == 0); in isl_format_get_num_channels()
1027 return (fmtl->channels.r.bits > 0) + in isl_format_get_num_channels()
1028 (fmtl->channels.g.bits > 0) + in isl_format_get_num_channels()
1029 (fmtl->channels.b.bits > 0) + in isl_format_get_num_channels()
1030 (fmtl->channels.a.bits > 0) + in isl_format_get_num_channels()
1031 (fmtl->channels.l.bits > 0) + in isl_format_get_num_channels()
1032 (fmtl->channels.i.bits > 0); in isl_format_get_num_channels()
1210 const struct isl_format_layout *fmtl = isl_format_get_layout(format); in isl_color_value_pack() local
1211 assert(fmtl->colorspace == ISL_COLORSPACE_LINEAR || in isl_color_value_pack()
1212 fmtl->colorspace == ISL_COLORSPACE_SRGB); in isl_color_value_pack()
1215 memset(data_out, 0, isl_align(fmtl->bpb, 32) / 8); in isl_color_value_pack()
1225 pack_channel(value, 0, &fmtl->channels.r, fmtl->colorspace, data_out); in isl_color_value_pack()
1226 pack_channel(value, 1, &fmtl->channels.g, fmtl->colorspace, data_out); in isl_color_value_pack()
1227 pack_channel(value, 2, &fmtl->channels.b, fmtl->colorspace, data_out); in isl_color_value_pack()
1228 pack_channel(value, 3, &fmtl->channels.a, ISL_COLORSPACE_LINEAR, data_out); in isl_color_value_pack()
1229 pack_channel(value, 0, &fmtl->channels.l, fmtl->colorspace, data_out); in isl_color_value_pack()
1230 pack_channel(value, 0, &fmtl->channels.i, ISL_COLORSPACE_LINEAR, data_out); in isl_color_value_pack()
1231 assert(fmtl->channels.p.bits == 0); in isl_color_value_pack()
1319 const struct isl_format_layout *fmtl = isl_format_get_layout(format); in isl_color_value_unpack() local
1320 assert(fmtl->colorspace == ISL_COLORSPACE_LINEAR || in isl_color_value_unpack()
1321 fmtl->colorspace == ISL_COLORSPACE_SRGB); in isl_color_value_unpack()
1340 unpack_channel(value, 0, 1, &fmtl->channels.r, fmtl->colorspace, data_in); in isl_color_value_unpack()
1341 unpack_channel(value, 1, 1, &fmtl->channels.g, fmtl->colorspace, data_in); in isl_color_value_unpack()
1342 unpack_channel(value, 2, 1, &fmtl->channels.b, fmtl->colorspace, data_in); in isl_color_value_unpack()
1343 unpack_channel(value, 3, 1, &fmtl->channels.a, ISL_COLORSPACE_LINEAR, data_in); in isl_color_value_unpack()
1344 unpack_channel(value, 0, 3, &fmtl->channels.l, fmtl->colorspace, data_in); in isl_color_value_unpack()
1345 unpack_channel(value, 0, 4, &fmtl->channels.i, ISL_COLORSPACE_LINEAR, data_in); in isl_color_value_unpack()
1346 assert(fmtl->channels.p.bits == 0); in isl_color_value_unpack()