Lines Matching defs:desc
1562 const struct util_format_description *desc = vk_format_description(iview->vk.format);
1566 else if (desc->layout == UTIL_FORMAT_LAYOUT_PLAIN) {
1568 extra_channel = desc->nr_channels - 1;
1575 int index = desc->swizzle[i] - PIPE_SWIZZLE_X;
1576 if (desc->swizzle[i] < PIPE_SWIZZLE_X || desc->swizzle[i] > PIPE_SWIZZLE_W)
1579 if (desc->channel[i].pure_integer && desc->channel[i].type == UTIL_FORMAT_TYPE_SIGNED) {
1581 int max = u_bit_consecutive(0, desc->channel[i].size - 1);
1586 } else if (desc->channel[i].pure_integer &&
1587 desc->channel[i].type == UTIL_FORMAT_TYPE_UNSIGNED) {
1589 unsigned max = u_bit_consecutive(0, desc->channel[i].size);
1616 if (values[i] != main_value && desc->swizzle[i] - PIPE_SWIZZLE_X != extra_channel &&
1617 desc->swizzle[i] >= PIPE_SWIZZLE_X && desc->swizzle[i] <= PIPE_SWIZZLE_W)
1652 const struct util_format_description *desc = vk_format_description(iview->vk.format);
1657 else if (desc->layout == UTIL_FORMAT_LAYOUT_PLAIN) {
1659 extra_channel = desc->nr_channels - 1;
1666 int index = desc->swizzle[i] - PIPE_SWIZZLE_X;
1667 if (desc->swizzle[i] < PIPE_SWIZZLE_X || desc->swizzle[i] > PIPE_SWIZZLE_W)
1671 if (clear_value->uint32[i] & ((1u << desc->channel[i].size) - 1))
1673 if (~clear_value->uint32[i] & ((1u << desc->channel[i].size) - 1))
1675 if (desc->channel[i].type != UTIL_FORMAT_TYPE_FLOAT || desc->channel[i].size != 16 ||
1678 if (desc->channel[i].type != UTIL_FORMAT_TYPE_FLOAT || desc->channel[i].size != 32 ||
1681 if ((clear_value->uint32[i] ^ extra_xor) & ((1u << desc->channel[i].size) - 1))
1683 if ((~clear_value->uint32[i] ^ extra_xor) & ((1u << desc->channel[i].size) - 1))