aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtneygo@google.com>2016-02-05 13:09:59 -0700
committerJon Ashburn <jon@lunarg.com>2016-02-08 08:41:13 -0700
commite218b7b5fc393bf349250f38561acf73ebfae29c (patch)
tree6e91d8e35b4dd710b8144695034458b0506015b4
parent6cc7160393fb8f158a2bd43aeaffe1274ed3c693 (diff)
downloadusermoji-e218b7b5fc393bf349250f38561acf73ebfae29c.tar.xz
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.
-rw-r--r--loader/loader.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 5c38e025..1e213e12 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 *) *