[Mesa-dev] [PATCH 0/6] anv: Symbol visibility fixes et al

Emil Velikov emil.l.velikov at gmail.com
Wed Jul 27 13:02:49 UTC 2016


Hi all,

A small series which covers the following:
 - Don't build the internal validate layer for release builds. The only 
validate function uses only asserts thus is no-op, yet cannot the 
optimiser cannot drop the ~10KiB of unused code.
 - Hide all* the symbols but vk_icdGetInstanceProcAddr from the export 
list, (implied with v1 of the loader and mandatory with v2)
 - Link with -Bsymbolic for safe measure (mentioned/suggested in v2)
 - Remove VK_DEBUG_MARKER_EXT implementation - empty stubes, and 
extension isn't mentioned in the json.

This saves us ~60K in binary size and a range of issues - both build and 
runtime. Tested OK against Dota2 (with overlay disabled).

Any input would be appreciated.

Thanks
Emil



More information about the mesa-dev mailing list