intel/tools/error: Only decode a few sections of error states.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 12 Nov 2017 06:04:01 +0000 (22:04 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Nov 2017 01:10:38 +0000 (17:10 -0800)
These three are the only we can reasonably decode with genxml.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/intel/tools/aubinator_error_decode.c

index 94436e957d412acb687360dfdd9db141e004d10e..ae9f08f1d2ba4991f709c7413dd37fc761da8c92 100644 (file)
@@ -527,7 +527,9 @@ read_data_file(FILE *file)
                                            stdout);
                }
             }
-         } else {
+         } else if (strcmp(buffer_name, "batch buffer") == 0 ||
+                    strcmp(buffer_name, "ring buffer") == 0 ||
+                    strcmp(buffer_name, "HW Context") == 0) {
             decode(spec, gtt_offset, data, count);
          }
          free(data);