intel: decoder: fix starting dword of struct fields
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 1 May 2018 23:13:39 +0000 (00:13 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 2 May 2018 16:11:28 +0000 (17:11 +0100)
commitacbce2ac57d476e2af90a2892341581b76148c11
tree4fb1573a1a7dc1475dabdfc8d7ad1ece585017d2
parent467430ddcc85be34bd79a3709b33e4510e3c9370
intel: decoder: fix starting dword of struct fields

Struct fields might span several dwords, but iter_dword is incremented
up to the last dword of the current field before we print out the
struct's fields. We can't use iter_dword for computing the offset into
the pointer of data to decode.

v2: Fix displayed offset number (Ken)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/common/gen_decoder.c