genxml: factor out utility functions
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 30 Apr 2020 12:43:01 +0000 (15:43 +0300)
committerMarge Bot <eric+marge@anholt.net>
Sat, 9 May 2020 07:20:48 +0000 (07:20 +0000)
commit942d4538a46c3420570ccf5c5f5677380c75caf0
treed0b323698f8374d11bb602f57c4ef16141e925fc
parentd07f69413ebd1ad56e5bba86a1891bbf571ff710
genxml: factor out utility functions

v2: Use the regexp version (Jordan)
    Also fix regexp that missed the ' character replacement (Lionel)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4938>
src/intel/genxml/gen_bits_header.py
src/intel/genxml/gen_pack_header.py
src/intel/genxml/util.py [new file with mode: 0644]