intel/genxml: Add GenXml.optimize_xml_import()
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 26 Dec 2022 11:37:21 +0000 (03:37 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 14 Sep 2023 18:05:16 +0000 (11:05 -0700)
commit614aa2e62bec263c1c828ac99b7e17af450e9398
tree5f95152b696eaf7357da5af141288094f4542e21
parent12853372180bd11c7ff8a131e6d468e3660f6bf0
intel/genxml: Add GenXml.optimize_xml_import()

This function drops duplicated items from a genxml file when they are
equivalent to the same item imported from another genxml file.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20593>
src/intel/genxml/intel_genxml.py