Lines Matching defs:desc
587 const struct util_format_description *desc = vk_format_description(format);
590 is_depth = util_format_has_depth(desc);
591 is_stencil = util_format_has_stencil(desc);
682 radv_compose_swizzle(const struct util_format_description *desc, const VkComponentMapping *mapping,
685 if (desc->format == PIPE_FORMAT_R64_UINT || desc->format == PIPE_FORMAT_R64_SINT) {
701 swizzle[i] = desc->swizzle[i];
702 } else if (desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) {
707 vk_format_compose_swizzles(mapping, desc->swizzle, swizzle);
715 const struct util_format_description *desc;
722 desc = vk_format_description(vk_format);
724 stride = desc->block.bits / 8;
726 radv_compose_swizzle(desc, NULL, swizzle);
756 num_format = radv_translate_buffer_numformat(desc, first_non_void);
757 data_format = radv_translate_buffer_dataformat(desc, first_non_void);
911 gfx9_border_color_swizzle(const struct util_format_description *desc)
915 if (desc->swizzle[3] == PIPE_SWIZZLE_X) {
922 if (desc->swizzle[2] == PIPE_SWIZZLE_Y)
926 } else if (desc->swizzle[0] == PIPE_SWIZZLE_X) {
927 if (desc->swizzle[1] == PIPE_SWIZZLE_Y)
931 } else if (desc->swizzle[1] == PIPE_SWIZZLE_X) {
933 } else if (desc->swizzle[2] == PIPE_SWIZZLE_X) {
943 const struct util_format_description *desc = vk_format_description(format);
945 if (device->physical_device->rad_info.gfx_level >= GFX10 && desc->nr_channels == 1)
946 return desc->swizzle[3] == PIPE_SWIZZLE_X;
962 const struct util_format_description *desc;
967 desc = vk_format_description(vk_format);
974 desc = util_format_description(PIPE_FORMAT_R8G8B8X8_UNORM);
977 desc = util_format_description(PIPE_FORMAT_R8G8B8X8_SRGB);
982 radv_compose_swizzle(desc, mapping, swizzle);
1014 S_00A00C_BC_SWIZZLE(gfx9_border_color_swizzle(desc)) | S_00A00C_TYPE(type);
1122 const struct util_format_description *desc;
1127 desc = vk_format_description(vk_format);
1134 desc = util_format_description(PIPE_FORMAT_R8G8B8X8_UNORM);
1137 desc = util_format_description(PIPE_FORMAT_R8G8B8X8_SRGB);
1140 radv_compose_swizzle(desc, mapping, swizzle);
1144 num_format = radv_translate_tex_numformat(vk_format, desc, first_non_void);
1149 data_format = radv_translate_tex_dataformat(vk_format, desc, first_non_void);
1200 unsigned bc_swizzle = gfx9_border_color_swizzle(desc);
1351 uint32_t desc[8];
1358 image->info.depth, 0.0f, desc, NULL, 0);
1362 desc);
1365 image->info.levels, desc, &md->size_metadata, md->metadata);
1767 const struct util_format_description *desc = vk_format_description(plane->format);
1771 fprintf(stderr, " Plane[%u]: vkformat=%s, offset=%" PRIu64 "\n", i, desc->name, offset);
2115 const struct util_format_description *desc = vk_format_description(iview->vk.format);
2116 if (desc->layout == UTIL_FORMAT_LAYOUT_ETC) {