intel: add intel_handle
intel_handle is the base struct of any API handle, with its own helper
functions. Move magic from intel_base to the new intel_handle.
diff --git a/icd/intel/instance.c b/icd/intel/instance.c
index 9e2c56b..641beea 100644
--- a/icd/intel/instance.c
+++ b/icd/intel/instance.c
@@ -26,7 +26,6 @@
* Chia-I Wu <olv@lunarg.com>
*/
-#include "xglIcd.h"
#include "icd-enumerate-drm.h"
#include "gpu.h"
#include "instance.h"
@@ -117,7 +116,7 @@
return NULL;
memset(instance, 0, sizeof(*instance));
- set_loader_magic_value(instance);
+ intel_handle_init(&instance->handle, XGL_DBG_OBJECT_INSTANCE);
icd_allocator_init(alloc_cb);