intel/genxml: Fix comparing xml when node counts differ
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 15 Aug 2023 10:07:30 +0000 (03:07 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 6 Sep 2023 07:18:47 +0000 (07:18 +0000)
commit8c8fca53fda09aa452edf6336a0e2b343e264064
tree0edc0c8954cbe5e09227821365a7bac9f7d664a8
parentd8038c8d096f968e61edbb6b5501f7ef382a011e
intel/genxml: Fix comparing xml when node counts differ

This fix is more relevant to MR !20593. Normally when sorting the
number of nodes will be equivalent today, so this bug will not be
encountered. But in !20593, we can shrink (--import) or grow the
number of elements (--flatten) when the genxml_import.py tool is used.

Fixes: e60a0b16163 ("intel/genxml: Move sorting & writing into GenXml class")
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/24902>
src/intel/genxml/intel_genxml.py