intel: Separate extensions into global and device
To support splitting extensions into global and physical
device extensions need to keep some enable information
at the instance level. The intel_instance is a logical
place for that but is not accessible from all objects.
This patch replaces the icd pointer in intel_handle
with an instance pointer so that we can find the global
extension enable flags.
diff --git a/icd/intel/obj.c b/icd/intel/obj.c
index 82aa1d3..15275a1 100644
--- a/icd/intel/obj.c
+++ b/icd/intel/obj.c
@@ -304,7 +304,7 @@
return NULL;
memset(base, 0, obj_size);
- intel_handle_init(&base->handle, type, handle->icd);
+ intel_handle_init(&base->handle, type, handle->instance);
if (debug) {
base->dbg = intel_base_dbg_create(&base->handle,