intel: Add pointer to device object in debug structure
The validation layer (debug object attached to intel_base.dbg)
need to know what device is being used to issue debug log messages.
Code now passes intel_dev pointer as part of creating the object.
diff --git a/icd/intel/query.c b/icd/intel/query.c
index 8a3a3e4..dc29ed8 100644
--- a/icd/intel/query.c
+++ b/icd/intel/query.c
@@ -66,7 +66,7 @@
{
struct intel_query *query;
- query = (struct intel_query *) intel_base_create(sizeof(*query),
+ query = (struct intel_query *) intel_base_create(dev, sizeof(*query),
dev->base.dbg, XGL_DBG_OBJECT_QUERY_POOL, info, 0);
if (!query)
return XGL_ERROR_OUT_OF_MEMORY;