[Mesa-dev] [PATCH 3/3] Fix missing initializer warning in vk_format_table.h by, adding appropriate default fields in vk_format_table.py

Benedikt Schemmer ben at besd.de
Sun Jun 4 07:45:33 UTC 2017


Fix missing initializer warning in vk_format_table.h by adding appropriate default fields 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, 0, 0, 0, 0, 0}%s" % (sep,)
         print "   },"

     def do_swizzle_array(channels, swizzles):
-- 
2.11.0



More information about the mesa-dev mailing list