instance: Added initial {Create|Destroy}Instance() and xglEnumerateGpus().
For now, retain the existing InitAndEnumerateGpus and have it create one
instance. New APIs aren't fully implemented yet in driver or loader.
diff --git a/xgl.py b/xgl.py
index 22baba5..fa5216b 100644
--- a/xgl.py
+++ b/xgl.py
@@ -183,6 +183,7 @@
name="XGL_CORE",
headers=["xgl.h", "xglDbg.h"],
objects=[
+ "XGL_INSTANCE",
"XGL_PHYSICAL_GPU",
"XGL_BASE_OBJECT",
"XGL_DEVICE",
@@ -223,6 +224,20 @@
Param("uint32_t*", "pGpuCount"),
Param("XGL_PHYSICAL_GPU*", "pGpus")]),
+ Proto("XGL_RESULT", "CreateInstance",
+ [Param("const XGL_APPLICATION_INFO*", "pAppInfo"),
+ Param("const XGL_ALLOC_CALLBACKS*", "pAllocCb"),
+ Param("XGL_INSTANCE*", "pInstance")]),
+
+ Proto("XGL_RESULT", "DestroyInstance",
+ [Param("XGL_INSTANCE", "pInstance")]),
+
+ Proto("XGL_RESULT", "EnumerateGpus",
+ [Param("XGL_INSTANCE", "instance"),
+ Param("uint32_t", "maxGpus"),
+ Param("uint32_t*", "pGpuCount"),
+ Param("XGL_PHYSICAL_GPU*", "pGpus")]),
+
Proto("XGL_RESULT", "GetGpuInfo",
[Param("XGL_PHYSICAL_GPU", "gpu"),
Param("XGL_PHYSICAL_GPU_INFO_TYPE", "infoType"),