intel/aubinator: Trust the packet size in the header for SUBOPCODE_HEADER
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 24 Nov 2016 03:26:13 +0000 (19:26 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 29 Nov 2016 00:45:09 +0000 (16:45 -0800)
commit12f2eae7e7e74c1c3f16fee1f27eec6cfcffe092
treeb23e28b162129527e768a49a7087f64e58073751
parent89bb515e915bbdf4f3b7b55f7cc228423131ca25
intel/aubinator: Trust the packet size in the header for SUBOPCODE_HEADER

We were reading from the "comment size" dword and incrementing by that
amount.  This never caused a problem because that field was always zero.
However, experimenting with actual aub file comments indicates, the
simulator seems to include the comment size in the packet size provided in
the header.  We should do the same.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/tools/aubinator.c