glsl: lower mediump temporaries to 16 bits except structures (v2)
[mesa.git] / src / mesa / main / format_info.py
index d3ec486f155222f5f95a07549e86132e4993a97c..42c236c7a6a4c5c06ec7be8944283af51021cf4d 100644 (file)
@@ -182,7 +182,7 @@ bf_map = {
 }
 
 for fmat in formats:
-   print('   {')
+   print('   [{0}] = {{'.format(fmat.name))
    print('      .Name = {0},'.format(fmat.name))
    print('      .StrName = "{0}",'.format(fmat.name))
    print('      .Layout = {0},'.format('MESA_FORMAT_LAYOUT_' + fmat.layout.upper()))