freedreno/rnn: add relaxed boolean type
authorRob Clark <robdclark@chromium.org>
Tue, 28 Jul 2020 16:47:38 +0000 (09:47 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jul 2020 14:30:35 +0000 (14:30 +0000)
commit61ae65a73d4a4ddba05c3531de94cf2974fb83a7
tree5b47ca080cdd227077eca5965b7456ae742819f3
parente3958ef83a19aae60f0aaeca0076b535bfb59c6c
freedreno/rnn: add relaxed boolean type

In the schema, boolean means strictly "true" or "false".  But rnn
parsing code was looking for "yes"/"1"/"no"/"0".  So split the
difference, and add a relaxed boolean type, and update rnn to also
accept "true" or "false".

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6107>
src/freedreno/registers/rules-ng.xsd
src/freedreno/rnn/rnn.c