loader: Include layers specified in environment
If application specified layer_info in the CreateDevice call
the code would only look for layers the app specified. However,
we want to include layers specified in the environment in addition
to any specified by the application.
diff --git a/loader/loader.c b/loader/loader.c
index c658279..c4e8a14 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -642,7 +642,7 @@
layerNames[i].layer_name[len] = '\0';
layerNames[i].lib_name = lib_name;
}
- return pCi->layerCount;
+ return pCi->layerCount + loader_get_layer_env(icd, gpu_index, layerNames);
}
pCi = pCi->pNext;
}