freedreno/registers: Re-enable validation for gen_header.py

Commit 84e93daa26 ("freedreno/registers: allow skipping the
validation") synced a change that made validation optional for
kernel builds, to avoid a lxml dependency for kernel builds.
But this inadvertantly also disabled schema validation on the
mesa side.  CI (and meson "test" target) still validates the
xml against the schema, but it is easier if this is also done
as part of the normal build to avoid suprises from Marge.

Fixes: 84e93daa26 ("freedreno/registers: allow skipping the validation")
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37216>
This commit is contained in:
Rob Clark 2025-09-06 16:49:59 -07:00 committed by Marge Bot
parent 6e0f9e8f67
commit a70279adc2
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ foreach f : xml_files
_name,
input: [gen_header_py, f, freedreno_schema, freedreno_copyright],
output: _name,
command: [prog_python, '@INPUT0@', '--rnn', rnn_src_path, '--xml', '@INPUT1@', 'c-defines'],
command: [prog_python, '@INPUT0@', '--validate', '--rnn', rnn_src_path, '--xml', '@INPUT1@', 'c-defines'],
capture: true,
)
_gzname = f + '.gz'

View file

@ -22,7 +22,7 @@ foreach f : xml_files
_name,
input: [gen_header_py, f, freedreno_schema, freedreno_copyright],
output: _name,
command: [prog_python, '@INPUT0@', '--rnn', rnn_src_path, '--xml', '@INPUT1@', 'c-defines'],
command: [prog_python, '@INPUT0@', '--validate', '--rnn', rnn_src_path, '--xml', '@INPUT1@', 'c-defines'],
capture: true,
)
endforeach