intel: error-decode: implement a rolling window of programs
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 1 Jun 2017 14:23:38 +0000 (15:23 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 1 Nov 2017 17:23:49 +0000 (17:23 +0000)
commit938f62a1c7d72c7d512c9888b0a02222bddef487
tree1fa21771f2495b79143005eca15b90aba4c62b37
parenteedecb4ecae36c5b01968fe668b894f573fbee10
intel: error-decode: implement a rolling window of programs

If we have more programs than what we can store,
aubinator_error_decode will assert. Instead let's have a rolling
window of programs.

v2: Fix overflowing issues (Eric Engestrom)

v3: Go through programs starting at idx_program (Scott)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
src/intel/tools/aubinator_error_decode.c