intel: add INTEL_DEBUG=hang

When enabled, make command buffer submission synchronous and decode the
command buffer that hangs the GPU.
diff --git a/icd/intel/intel.c b/icd/intel/intel.c
index c8c7d2a..c5b4f63 100644
--- a/icd/intel/intel.c
+++ b/icd/intel/intel.c
@@ -60,6 +60,8 @@
                 intel_debug |= INTEL_DEBUG_NOHW;
             } else if (strncmp(env, "nocache", len) == 0) {
                 intel_debug |= INTEL_DEBUG_NOCACHE;
+            } else if (strncmp(env, "hang", len) == 0) {
+                intel_debug |= INTEL_DEBUG_HANG;
             } else if (strncmp(env, "0x", 2) == 0) {
                 intel_debug |= INTEL_DEBUG_NOHW;
                 intel_devid_override = strtol(env, NULL, 16);