intel/decoders: fix end of batch limit
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 23 Oct 2018 00:39:39 +0000 (01:39 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 23 Oct 2018 13:49:33 +0000 (14:49 +0100)
commita8594887bcb848bf5b426664c000f15332e4d372
tree60a5bdbcfecf94674a11975d4743eafd229b44ba
parent55e7de7b193535133d4324e9f601ae44a0cdd9a7
intel/decoders: fix end of batch limit

Pointer arithmetic...

v2: s/4/sizeof(uint32_t)/ (Eric)

v3: Give bytes to print_batch() in error_decode (Lionel)
    Make clear what values we're dealing with in error_decode (Lionel)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> (v2)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/common/gen_batch_decoder.c
src/intel/tools/aubinator_error_decode.c
src/intel/tools/aubinator_viewer_decoder.cpp