msm: kgsl: Capture more interesting GPU buffers from a hang

Freeze more essential GPU buffers and push them into the snapshot
dump.  Add visibilty stream buffers, VBOs, index buffers and general
purpose GPU buffers to the list of frozen buffers. Parse the captured
IBs for type0 and type3 writes that indicate a buffer of interest
and add them to the dump list.

Change-Id: Ic0dedbad1ee978b951abedacb0c70481a1a7e38f
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
diff --git a/drivers/gpu/msm/kgsl_snapshot.h b/drivers/gpu/msm/kgsl_snapshot.h
index bd5be74..304f4bb 100644
--- a/drivers/gpu/msm/kgsl_snapshot.h
+++ b/drivers/gpu/msm/kgsl_snapshot.h
@@ -151,8 +151,9 @@
 	int count; /* Number of dwords in the dump */
 } __packed;
 
-#define SNAPSHOT_GPU_OBJECT_SHADER 1
-#define SNAPSHOT_GPU_OBJECT_IB     2
+#define SNAPSHOT_GPU_OBJECT_SHADER  1
+#define SNAPSHOT_GPU_OBJECT_IB      2
+#define SNAPSHOT_GPU_OBJECT_GENERIC 3
 
 struct kgsl_snapshot_gpu_object {
 	int type;      /* Type of GPU object */