intel/dump_gpu: add an only-capture option
[mesa.git] / src / intel / tools / intel_dump_gpu.in
index 060c21c592b8d9c6bf724270bdf9b5e5cf3c9b5e..3efa0d4c76e8d03df90ae2a7c96a3fe9ab9446d6 100755 (executable)
@@ -16,6 +16,10 @@ contents and execution of the GEM application.
 
   -p, --platform=NAME Override PCI ID using a platform name
 
+  -c, --only-capture  Only write objects flagged with EXEC_OBJECT_CAPTURE into
+                      the output aub file. This helps reducing output file
+                      size greatly but won't produce a file replayable
+
   -v                  Enable verbose output
 
   -vv                 Enable extra verbosity - dumps gtt mappings
@@ -31,6 +35,7 @@ ld_preload="@install_libexecdir@/libintel_dump_gpu.so${LD_PRELOAD:+:$LD_PRELOAD}
 args=""
 file=""
 gdb=""
+capture_only=""
 
 function add_arg() {
     arg=$1
@@ -89,6 +94,14 @@ while true; do
             gdb=1
             shift
             ;;
+        -c)
+            add_arg "capture_only=1"
+            shift
+            ;;
+        --only-capture)
+            add_arg "capture_only=1"
+            shift
+            ;;
         --help)
             show_help
             ;;