radv: mark const structs as extern in header file to avoid lto damage
authorDave Airlie <airlied@redhat.com>
Fri, 13 Apr 2018 02:40:55 +0000 (12:40 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 22 Apr 2018 19:55:22 +0000 (05:55 +1000)
commita8420e253038fd4ef063af4ee370038075ee7aeb
treeadcdf4f7de59b8871619dc460dddb7da370a16eb
parentf8c4716854ca76c49e5b83fdbe36993deba37908
radv: mark const structs as extern in header file to avoid lto damage

The copr repo from che was using LTO and he reported radv broke
recently with it. When testing with lto builds here I noticed
that we weren't seeing any instance extensions reported.

It appears LTO was treating the const without extern as an empty
struct, this is possibly a gcc bug, but we can work around it
just by marking these with extern.

Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_extensions.py