layers: Add utilities for layer configuration via settings file.
Layers can now call getLayerOption("<option name>") to get layer settings.
File xgl_layer_settings.txt can be used to provide option and value pairs
to configure a given layer.
Add enums to xglLayer.h to provide a generic ACTION and LEVEl settings for
options in the settings file.
diff --git a/include/xglLayer.h b/include/xglLayer.h
index a6ca270..6a0339c 100644
--- a/include/xglLayer.h
+++ b/include/xglLayer.h
@@ -156,5 +156,22 @@
struct _XGL_LAYER_DBG_FUNCTION_NODE *pNext;
} XGL_LAYER_DBG_FUNCTION_NODE;
+typedef enum _XGL_LAYER_DBG_ACTION
+{
+ XGL_DBG_LAYER_ACTION_IGNORE = 0x0,
+ XGL_DBG_LAYER_ACTION_CALLBACK = 0x1,
+ XGL_DBG_LAYER_ACTION_LOG_MSG = 0x2,
+ XGL_DBG_LAYER_ACTION_BREAK = 0x4
+} XGL_LAYER_DBG_ACTION;
+
+typedef enum _XGL_LAYER_DBG_REPORT_LEVEL
+{
+
+ XGL_DBG_LAYER_LEVEL_INFO = 0,
+ XGL_DBG_LAYER_LEVEL_WARN,
+ XGL_DBG_LAYER_LEVEL_PERF_WARN,
+ XGL_DBG_LAYER_LEVEL_ERROR,
+ XGL_DBG_LAYER_LEVEL_NONE,
+} XGL_LAYER_DBG_REPORT_LEVEL;
// ------------------------------------------------------------------------------------------------
// API functions