intel/tools/error: Refactor buffer matching, add more buffers.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 12 Nov 2017 06:09:16 +0000 (22:09 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Nov 2017 01:10:51 +0000 (17:10 -0800)
commit596e8603179006a448b2cb5be5890bc57f41e090
treea0cfe8369c6e56459a72461a09ac3a11ce816623
parent4bb119f00b2a5742adf79958d691d3b92ea6f87e
intel/tools/error: Refactor buffer matching, add more buffers.

Based on a similar patch to intel_error_decode by Chris Wilson.

While we're de-duplicating the gtt_offset calculation, we can simplify
it to assume two hex digits are there - the kernel has done this since
v4.6, and we already require error states from v4.10.

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