Lines Matching defs:desc

1067 				       const struct util_format_description *desc,
1074 switch (desc->colorspace) {
1119 for (i = 1; i < desc->nr_channels; i++) {
1120 uniform = uniform && desc->channel[0].size == desc->channel[i].size;
1125 switch(desc->nr_channels) {
1127 if (desc->channel[0].size == 5 &&
1128 desc->channel[1].size == 6 &&
1129 desc->channel[2].size == 5) {
1134 if (desc->channel[0].size == 5 &&
1135 desc->channel[1].size == 5 &&
1136 desc->channel[2].size == 5 &&
1137 desc->channel[3].size == 1) {
1140 if (desc->channel[0].size == 10 &&
1141 desc->channel[1].size == 10 &&
1142 desc->channel[2].size == 10 &&
1143 desc->channel[3].size == 2) {
1155 switch (desc->channel[first_non_void].size) {
1157 switch (desc->nr_channels) {
1165 switch (desc->nr_channels) {
1175 switch (desc->nr_channels) {
1185 switch (desc->nr_channels) {
1304 const struct util_format_description *desc,
1307 unsigned type = desc->channel[first_non_void].type;
1314 for (i = 0; i < desc->nr_channels; i++) {
1315 if (desc->channel[first_non_void].size != desc->channel[i].size)
1319 switch (desc->channel[first_non_void].size) {
1321 switch (desc->nr_channels) {
1332 switch (desc->nr_channels) {
1346 switch (desc->nr_channels) {
1364 const struct util_format_description *desc;
1368 desc = util_format_description(format);
1370 data_format = si_translate_vertexformat(screen, format, desc, first_non_void);
1455 const struct util_format_description *desc;
1524 desc = util_format_description(surf->base.format);
1526 if (desc->channel[i].type != UTIL_FORMAT_TYPE_VOID) {
1530 if (desc->channel[i].type == UTIL_FORMAT_TYPE_FLOAT) {
1534 if (desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB)
1536 else if (desc->channel[i].type == UTIL_FORMAT_TYPE_SIGNED) {
1537 if (desc->channel[i].normalized)
1539 else if (desc->channel[i].pure_integer)
1541 } else if (desc->channel[i].type == UTIL_FORMAT_TYPE_UNSIGNED) {
1542 if (desc->channel[i].normalized)
1544 else if (desc->channel[i].pure_integer)
1990 const struct util_format_description *desc = util_format_description(state->format);
2014 util_format_compose_swizzles(desc->swizzle, state_swizzle, swizzle);
2017 switch (desc->channel[first_non_void].type) {
2029 format = si_translate_texformat(ctx->screen, state->format, desc, first_non_void);
2344 const struct util_format_description *desc;
2348 desc = util_format_description(elements[i].src_format);
2351 desc, first_non_void);
2353 switch (desc->channel[first_non_void].type) {
2368 v->rsrc_word3[i] = S_008F0C_DST_SEL_X(si_map_swizzle(desc->swizzle[0])) |
2369 S_008F0C_DST_SEL_Y(si_map_swizzle(desc->swizzle[1])) |
2370 S_008F0C_DST_SEL_Z(si_map_swizzle(desc->swizzle[2])) |
2371 S_008F0C_DST_SEL_W(si_map_swizzle(desc->swizzle[3])) |