From e218b7b5fc393bf349250f38561acf73ebfae29c Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Fri, 5 Feb 2016 13:09:59 -0700 Subject: [PATCH] loader: MR215 device extensions not enumerated If a layer's device extension didn't define any entrypoints it was ignored by the loader. Now add it to the list of layer extensions. --- loader/loader.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/loader/loader.c b/loader/loader.c index 5c38e02..1e213e1 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -1899,8 +1899,11 @@ loader_add_layer_properties(const struct loader_instance *inst, // entrypoints = cJSON_GetObjectItem(ext_item, "entrypoints"); GET_JSON_OBJECT(ext_item, entrypoints) int entry_count; - if (entrypoints == NULL) + if (entrypoints == NULL) { + loader_add_to_dev_ext_list(inst, &props->device_extension_list, + &ext_prop, 0, NULL); continue; + } entry_count = cJSON_GetArraySize(entrypoints); if (entry_count) entry_array = (char **)loader_stack_alloc(sizeof(char *) * -- 2.7.4