intel: make intel_base_create() take a intel_handle
With this change, we now create intel_dev using
dev = intel_base_create(&gpu->handle, ...);
instead of
dev = intel_base_create(NULL, ...);
The calls to intel_dev_log() in base_dbg_copy_create_info() are removed. One
of them is replaced an assert() and the other should have been called in
intel_mem_alloc().
diff --git a/icd/intel/queue.c b/icd/intel/queue.c
index b185419..7c4f49b 100644
--- a/icd/intel/queue.c
+++ b/icd/intel/queue.c
@@ -269,8 +269,8 @@
break;
}
- queue = (struct intel_queue *) intel_base_create(dev, sizeof(*queue),
- dev->base.dbg, XGL_DBG_OBJECT_QUEUE, NULL, 0);
+ queue = (struct intel_queue *) intel_base_create(&dev->base.handle,
+ sizeof(*queue), dev->base.dbg, XGL_DBG_OBJECT_QUEUE, NULL, 0);
if (!queue)
return XGL_ERROR_OUT_OF_MEMORY;