Lines Matching defs:desc

476    const struct util_format_description *desc = vk_format_description(vk_format);
482 ntype = radv_translate_color_numformat(vk_format, desc,
501 const struct util_format_description *desc = vk_format_description(format);
504 return channel >= 0 && desc->channel[channel].pure_integer && desc->channel[channel].size == 8;
510 const struct util_format_description *desc = vk_format_description(format);
512 if (desc->nr_channels != 4)
515 if (desc->channel[i].pure_integer && desc->channel[i].size == 10)
524 const struct util_format_description *desc = vk_format_description(format);
528 desc->channel[channel].type == UTIL_FORMAT_TYPE_FLOAT && desc->channel[channel].size == 32;
1510 const VkVertexInputBindingDescription *desc = &vi->pVertexBindingDescriptions[i];
1512 if (desc->inputRate) {
1518 info.binding_stride[desc->binding] = desc->stride;
1529 const VkVertexInputAttributeDescription *desc = &vi->pVertexAttributeDescriptions[i];
1531 unsigned location = desc->location;
1532 unsigned binding = desc->binding;
1541 format_desc = vk_format_description(desc->format);
1542 radv_translate_vertex_format(pdevice, desc->format, format_desc, &data_format, &num_format,
1546 info.vertex_attribute_bindings[location] = desc->binding;
1547 info.vertex_attribute_offsets[location] = desc->offset;
1553 /* If desc->offset is misaligned, then the buffer offset must be too. Just
1556 if (desc->offset % attrib_align == 0)
1557 info.vertex_binding_align[desc->binding] =
1558 MAX2(info.vertex_binding_align[desc->binding], attrib_align);
1576 info.vertex_attribute_strides[location] = radv_get_attrib_stride(vi, desc->binding);
1582 uint32_t end = desc->offset + vk_format_get_blocksize(desc->format);
1583 info.attrib_ends[desc->location] = end;
1584 if (info.binding_stride[desc->binding])
1585 info.attrib_index_offset[desc->location] =
1586 desc->offset / info.binding_stride[desc->binding];
1587 info.attrib_bindings[desc->location] = desc->binding;
7387 desc_copy(char *desc, const char *src)
7391 memcpy(desc, src, len);
7392 memset(desc + len, 0, VK_MAX_DESCRIPTION_SIZE - len);
7591 desc_copy(s->description, info->desc);