intel: fix copying of create info
For XGL_STRUCTURE_TYPE_DEVICE_CREATE_INFO, we need to do a deep copy. To
achieve, we need to derive the type of the create info from within
intel_base_dbg_create().
As usual, this is untested.
diff --git a/icd/intel/queue.c b/icd/intel/queue.c
index 9dc23ab..a35449c 100644
--- a/icd/intel/queue.c
+++ b/icd/intel/queue.c
@@ -41,8 +41,8 @@
queue->base.dispatch = dev->base.dispatch;
if (dev->base.dbg) {
- queue->base.dbg = intel_base_dbg_create(XGL_DBG_OBJECT_QUEUE,
- NULL, 0, 0);
+ queue->base.dbg =
+ intel_base_dbg_create(XGL_DBG_OBJECT_QUEUE, NULL, 0);
if (!queue->base.dbg) {
icd_free(queue);
return XGL_ERROR_OUT_OF_MEMORY;