driver:implement changes for Dynamic State
diff --git a/icd/intel/mem.c b/icd/intel/mem.c
index d8c2f8a..47f312d 100644
--- a/icd/intel/mem.c
+++ b/icd/intel/mem.c
@@ -36,7 +36,7 @@
 
     if ((info->alignment != 0) && (4096 % info->alignment))
         return XGL_ERROR_INVALID_ALIGNMENT;
-    if (info->heapCount != 1 || info->heaps[0] != 0)
+    if (info->heapCount != 1 || info->pHeaps[0] != 0)
         return XGL_ERROR_INVALID_POINTER;
 
     mem = (struct intel_mem *) intel_base_create(dev, sizeof(*mem),