intel/decoder: Take a bit offset in gen_print_group
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 13 Dec 2017 01:36:47 +0000 (17:36 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 14 Dec 2017 21:27:04 +0000 (13:27 -0800)
commita7ae72032f550d9680673b67b1e81452d0b74fed
tree290cffff477670f5d56b92461e7d2488723e5e8f
parentdca8f466ee3c1d2d3a8f120895639c9a2cca9272
intel/decoder: Take a bit offset in gen_print_group

Previously, if a group was nested in another group such that it didn't
start on a dword boundary, we would decode it as if it started at the
start of its first dword.  This changes things to work even more in
terms of bits so that we can properly decode these structs.  This
affects MOCS, attribute swizzles, and several other things.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_decoder.c
src/intel/common/gen_decoder.h
src/intel/tools/aubinator.c
src/intel/tools/aubinator_error_decode.c
src/mesa/drivers/dri/i965/intel_batchbuffer.c