intel/genxml: fix bits generation for MI_LOAD_REGISTER_IMM
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 4 Apr 2020 14:57:11 +0000 (17:57 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 20 May 2020 11:02:26 +0000 (14:02 +0300)
commit570bd760d3e1c2754fc045981d2162df67e81592
treecb461c7a2b4e0eff91750ef8af64ce1aa0c9763d
parentee9b17fc26178dffde63f793391a54a7c67f292d
intel/genxml: fix bits generation for MI_LOAD_REGISTER_IMM

This instruction has a group with the same name than another field above :

  <field name="Data DWord" start="64" end="95" type="uint"/>
  <group count="0" start="96" size="64">
    <field name="Register Offset" start="2" end="22" type="offset"/>
    <field name="Data DWord" start="32" end="63" type="uint"/>
  </group>

The script was replacing the offset of the field first with the second
one in the group.

This change ignore anything a group within an instruction.

v2: Drop unused variable (Rafael)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2775>
src/intel/genxml/gen_bits_header.py