radv: make device extension setup dynamic
authorAndres Rodriguez <andresx7@gmail.com>
Fri, 13 Jan 2017 23:44:17 +0000 (18:44 -0500)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 14 Jan 2017 13:20:17 +0000 (14:20 +0100)
commit1e1bddf15a1720917b11e44dc639351ad613c3dc
tree62666956807e4a59c99c7ccfc3c102edb3cba8c1
parent5323efb685634341df10f7f5b2fe37a0a2ca5e52
radv: make device extension setup dynamic

Each physical device may have different extensions than one another.
Furthermore, depending on the software stack, some extensions may not be
accessible.

If an extension is conditional, it can be registered only when
necessary.

v2: removed unused function and fixed indentation

Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h