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/fence.c b/icd/intel/fence.c
index f5c5a6f..842f134 100644
--- a/icd/intel/fence.c
+++ b/icd/intel/fence.c
@@ -49,8 +49,8 @@
fence->obj.base.dispatch = dev->base.dispatch;
if (dev->base.dbg) {
- fence->obj.base.dbg = intel_base_dbg_create(XGL_DBG_OBJECT_FENCE,
- info, sizeof(*info), 0);
+ fence->obj.base.dbg =
+ intel_base_dbg_create(XGL_DBG_OBJECT_FENCE, info, 0);
if (!fence->obj.base.dbg) {
icd_free(fence);
return XGL_ERROR_OUT_OF_MEMORY;