intel: Fix 3DSTATE_CONSTANT buffer decoding.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 2 May 2018 16:43:27 +0000 (09:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 2 May 2018 17:09:28 +0000 (10:09 -0700)
commit169d8e011aef79192f056ba8bc0a001cbea938c4
tree75a39360dce8058a45b185d2f8707457b6ab5319
parentcf1d58787909757bb2d137fd8a53ef00e2cd6578
intel: Fix 3DSTATE_CONSTANT buffer decoding.

First, this was iterating over the 3DSTATE_CONSTANT_* instruction
but trying to process fields of the 3DSTATE_CONSTANT_BODY substructure.

Secondly, the fields have been called Buffer[0] and Read Length[0],
for a while now, and we were not handling the subscripts correctly.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_batch_decoder.c