Fix missing initializer warning in vk_format_table.h by changing to a default initializer in vk_format_table.py and correct the autogenerated from message
--- src/amd/vulkan/vk_format_table.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/vk_format_table.py b/src/amd/vulkan/vk_format_table.py index 36352b108d..139bb9544c 100644 --- a/src/amd/vulkan/vk_format_table.py +++ b/src/amd/vulkan/vk_format_table.py @@ -86,7 +86,7 @@ def print_channels(format, func): print '#endif' def write_format_table(formats): - print '/* This file is autogenerated by u_format_table.py from u_format.csv. Do not edit directly. */' + print '/* This file is autogenerated by vk_format_table.py from vk_format_layout.csv. Do not edit directly. */' print # This will print the copyright message on the top of this file print CopyRight.strip() @@ -106,7 +106,7 @@ def write_format_table(formats): if channel.size: print " {%s, %s, %s, %s, %u, %u}%s\t/* %s = %s */" % (type_map[channel.type], bool_map(channel.norm), bool_map(channel.pure), bool_map(channel.scaled), channel.size, channel.shift, sep, "xyzw"[i], channel.name) else: - print " {0, 0, 0, 0, 0}%s" % (sep,) + print " {0}%s" % (sep,) print " }," def do_swizzle_array(channels, swizzles): -- 2.11.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev