-
Bas Nieuwenhuizen authored
Steps: git reset --hard sed -i 's/struct vk_format_description \*/struct util_format_description \*/g' *.{c,h} sed -i 's/VK_FORMAT_COLORSPACE/UTIL_FORMAT_COLORSPACE/g' *.c sed -i 's/= VK_FORMAT_COLORSPACE/= UTIL_FORMAT_COLORSPACE/g' *.h sed -i 's/enum vk_format_colorspace /enum util_format_colorspace /g' *.h sed -i 's/VK_FORMAT_TYPE/UTIL_FORMAT_TYPE/g' *.c sed -i 's/VK_FORMAT_LAYOUT/UTIL_FORMAT_LAYOUT/g' *.c sed -i 's/vk_format_channel_description/util_format_channel_description/g' *.c sed -i 's/vk_format_description(/vk_format_description_legacy(/g' *.py sed -i 's/const struct vk_format_description \*/static const struct vk_format_description \*/g' *.py Then manually: 1) Rename the vk_format_colorspace definition back (only want the uses renamed) 2) Fix the desc->format == VK_FORMAT_... warnings 3) Add vk_format_description implementation (and remove warning pragmas) Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <!8797>
d9d9acd3