loader: Include layers specified in environment
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Wed, 7 Jan 2015 17:17:44 +0000 (10:17 -0700)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 5 Feb 2015 00:58:04 +0000 (17:58 -0700)
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.

loader/loader.c

index c6582796761952bbcb0f8471dfbb54f69e776ccc..c4e8a14886c16152e28d4938b4a436dfd3bf9480 100644 (file)
@@ -642,7 +642,7 @@ static XGL_UINT loader_get_layer_libs(struct loader_icd *icd, XGL_UINT gpu_index
                 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;
     }