Lines Matching refs:fmtl
727 const struct isl_format_layout *fmtl = isl_format_get_layout(format);
731 if (fmtl->txc == ISL_TXC_ETC1 || fmtl->txc == ISL_TXC_ETC2)
740 const struct isl_format_layout *fmtl = isl_format_get_layout(format);
744 if (fmtl->txc == ISL_TXC_ASTC)
747 const struct isl_format_layout *fmtl = isl_format_get_layout(format);
755 if (fmtl->txc == ISL_TXC_ASTC || fmtl->txc == ISL_TXC_FXT1)
858 const struct isl_format_layout *fmtl = isl_format_get_layout(format);
866 return fmtl->bpb == 32 || fmtl->bpb == 64 || fmtl->bpb == 128;
1009 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt);
1011 return fmtl->channels.r.type == type ||
1012 fmtl->channels.g.type == type ||
1013 fmtl->channels.b.type == type ||
1014 fmtl->channels.a.type == type ||
1015 fmtl->channels.l.type == type ||
1016 fmtl->channels.i.type == type ||
1017 fmtl->channels.p.type == type;
1059 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt);
1060 const uint8_t intensity = fmtl->channels.i.bits;
1061 const uint8_t luminance = fmtl->channels.l.bits;
1065 return (fmtl->channels.r.bits + intensity + luminance) > 0;
1067 return (fmtl->channels.g.bits + intensity + luminance) > 0;
1069 return (fmtl->channels.b.bits + intensity + luminance) > 0;
1071 return (fmtl->channels.a.bits + intensity) > 0;
1081 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt);
1083 assert(fmtl->channels.p.bits == 0);
1085 return (fmtl->channels.r.bits > 0) +
1086 (fmtl->channels.g.bits > 0) +
1087 (fmtl->channels.b.bits > 0) +
1088 (fmtl->channels.a.bits > 0) +
1089 (fmtl->channels.l.bits > 0) +
1090 (fmtl->channels.i.bits > 0);
1268 const struct isl_format_layout *fmtl = isl_format_get_layout(format);
1269 assert(fmtl->colorspace == ISL_COLORSPACE_LINEAR ||
1270 fmtl->colorspace == ISL_COLORSPACE_SRGB);
1273 memset(data_out, 0, isl_align(fmtl->bpb, 32) / 8);
1283 pack_channel(value, 0, &fmtl->channels.r, fmtl->colorspace, data_out);
1284 pack_channel(value, 1, &fmtl->channels.g, fmtl->colorspace, data_out);
1285 pack_channel(value, 2, &fmtl->channels.b, fmtl->colorspace, data_out);
1286 pack_channel(value, 3, &fmtl->channels.a, ISL_COLORSPACE_LINEAR, data_out);
1287 pack_channel(value, 0, &fmtl->channels.l, fmtl->colorspace, data_out);
1288 pack_channel(value, 0, &fmtl->channels.i, ISL_COLORSPACE_LINEAR, data_out);
1289 assert(fmtl->channels.p.bits == 0);
1365 const struct isl_format_layout *fmtl = isl_format_get_layout(format);
1366 assert(fmtl->colorspace == ISL_COLORSPACE_LINEAR ||
1367 fmtl->colorspace == ISL_COLORSPACE_SRGB);
1386 unpack_channel(value, 0, 1, &fmtl->channels.r, fmtl->colorspace, data_in);
1387 unpack_channel(value, 1, 1, &fmtl->channels.g, fmtl->colorspace, data_in);
1388 unpack_channel(value, 2, 1, &fmtl->channels.b, fmtl->colorspace, data_in);
1389 unpack_channel(value, 3, 1, &fmtl->channels.a, ISL_COLORSPACE_LINEAR, data_in);
1390 unpack_channel(value, 0, 3, &fmtl->channels.l, fmtl->colorspace, data_in);
1391 unpack_channel(value, 0, 4, &fmtl->channels.i, ISL_COLORSPACE_LINEAR, data_in);
1392 assert(fmtl->channels.p.bits == 0);