intel/genxml: Add an "mbz" data type
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 26 Oct 2021 21:46:21 +0000 (14:46 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 28 Oct 2021 19:45:55 +0000 (19:45 +0000)
commite69d395cd1c79f2ff730fbaf535a75dd7347dfb7
tree7475ef1dceb65f574c4232ced584e0b228713c08
parent58dc7f6ea67eed9583850a8fe69d6289fe919b69
intel/genxml: Add an "mbz" data type

There are some fields which Must Be Zero, and we don't want to allow
setting them from the template struct, but we do want them in the XML
to allow them to be decoded properly, and for documentation purposes.

This adds a new "mbz" type, much like "mbo", except it doesn't set
anything in the struct.  We also update the decoder to handle it.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13480>
src/intel/common/intel_decoder.c
src/intel/common/intel_decoder.h
src/intel/genxml/gen_pack_header.py