loader: bug 12992: extension and layer support
Much of layers and loader updated to work with
final extension and layer mechanism.
Not everything is working here.
diff --git a/icd/intel/extension_utils.c b/icd/intel/extension_utils.c
index b04f58b..159d87f 100644
--- a/icd/intel/extension_utils.c
+++ b/icd/intel/extension_utils.c
@@ -30,31 +30,28 @@
const VkExtensionProperties intel_global_exts[INTEL_GLOBAL_EXT_COUNT] = {
{
- .sType = VK_STRUCTURE_TYPE_EXTENSION_PROPERTIES,
- .name = DEBUG_REPORT_EXTENSION_NAME,
+ .extName = DEBUG_REPORT_EXTENSION_NAME,
.version = VK_DEBUG_REPORT_EXTENSION_VERSION,
- .description = "Intel sample driver",
+ .specVersion = VK_API_VERSION,
},
{
- .sType = VK_STRUCTURE_TYPE_EXTENSION_PROPERTIES,
- .name = VK_WSI_LUNARG_EXTENSION_NAME,
+ .extName = VK_WSI_LUNARG_EXTENSION_NAME,
.version = VK_WSI_LUNARG_REVISION,
- .description = "Intel sample driver",
+ .specVersion = VK_API_VERSION,
}
};
const VkExtensionProperties intel_phy_dev_gpu_exts[INTEL_PHY_DEV_EXT_COUNT] = {
{
- .sType = VK_STRUCTURE_TYPE_EXTENSION_PROPERTIES,
- .name = DEBUG_MARKER_EXTENSION_NAME,
+ .extName = DEBUG_MARKER_EXTENSION_NAME,
.version = VK_DEBUG_MARKER_EXTENSION_VERSION,
- .description = "Intel sample driver",
+ .specVersion = VK_API_VERSION,
}
};
bool compare_vk_extension_properties(
const VkExtensionProperties *op1,
- const VkExtensionProperties *op2)
+ const char *extName)
{
- return memcmp(op1, op2, sizeof(VkExtensionProperties)) == 0 ? true : false;
+ return strcmp(op1->extName, extName) == 0 ? true : false;
}