Mesa (master): radv: make vk_format_description structures static

Grazvydas Ignotas notaz at kemper.freedesktop.org
Sat Mar 17 17:05:08 UTC 2018


Module: Mesa
Branch: master
Commit: e1b2e5667c48c3863fd84c1e903c9aa6bf30a137
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1b2e5667c48c3863fd84c1e903c9aa6bf30a137

Author: Grazvydas Ignotas <notasas at gmail.com>
Date:   Sat Mar 10 20:52:16 2018 +0200

radv: make vk_format_description structures static

No need to bother the linker about them.

Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 src/amd/vulkan/vk_format_table.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/vk_format_table.py b/src/amd/vulkan/vk_format_table.py
index c33a4ce65f..cd1af6226a 100644
--- a/src/amd/vulkan/vk_format_table.py
+++ b/src/amd/vulkan/vk_format_table.py
@@ -125,7 +125,7 @@ def write_format_table(formats):
         print "   },"
 
     for format in formats:
-        print 'const struct vk_format_description'
+        print 'static const struct vk_format_description'
         print 'vk_format_%s_description = {' % (format.short_name(),)
         print "   %s," % (format.name,)
         print "   \"%s\"," % (format.name,)




More information about the mesa-commit mailing list