driconf: Restore the ability to override driconf with the environment.
authorEric Anholt <eric@anholt.net>
Mon, 5 Oct 2020 17:18:49 +0000 (10:18 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 6 Oct 2020 17:03:49 +0000 (17:03 +0000)
commit7fb4ab9ec1223a3ba3ba715470ee7c8e8e48d1de
treebdc5631861d025281012bff77d3f7a01f85fe2c0
parent455bfecdffcfb92a91f6a9eaecfff02cb7cfa0c2
driconf: Restore the ability to override driconf with the environment.

I distinctly remember testing this during development, yet clearly deleted
the code.

I pulled the parseValue code back up to the top where it used to be since
we have to use it, rather than just adding a prototype.

Fixes: 8a05d6ffc65d ("driconf: Make the driver's declarations be structs instead of XML.")
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7012>
src/util/xmlconfig.c