aco: Add README which explains about what ACO is and how it works.
[mesa.git] / src / amd / vulkan / vk_format_table.py
index 44c3439e9fc76c4be5be2674f3347f1f4a9e8046..79f51b997b73a4bbc92481ed94fd328819900844 100644 (file)
@@ -80,7 +80,7 @@ def print_channels(format, func):
     if format.nr_channels() <= 1:
         func(format.le_channels, format.le_swizzles)
     else:
-        print('#ifdef PIPE_ARCH_BIG_ENDIAN')
+        print('#if UTIL_ARCH_BIG_ENDIAN')
         func(format.be_channels, format.be_swizzles)
         print('#else')
         func(format.le_channels, format.le_swizzles)
@@ -140,9 +140,13 @@ def write_format_table(formats):
         print_channels(format, do_channel_array)
         print_channels(format, do_swizzle_array)
         print("   %s," % (colorspace_map(format.colorspace),))
+        print("   %u,\t/* plane_count */" % (format.plane_count))
+        print("   %u,\t/* width_divisor */" % (format.width_divisor))
+        print("   %u,\t/* height_divisor */" % (format.height_divisor))
+        print("   {%s, %s, %s}," % (format.plane_formats[0], format.plane_formats[1], format.plane_formats[2]))
         print("};")
         print()
-        
+
     print("const struct vk_format_description *")
     print("vk_format_description(VkFormat format)")
     print("{")