driconf: Delete disjoint range support.
authorEric Anholt <eric@anholt.net>
Mon, 28 Sep 2020 18:21:00 +0000 (11:21 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 2 Oct 2020 23:59:52 +0000 (23:59 +0000)
commit23c3eb1fe161d9eda0f6adf1d70780e102e20bca
tree7c205f6de6163fedfad3a978458b66ebd79e066f
parent4f37161a8f221cc31493c1ec3fb017f486754626
driconf: Delete disjoint range support.

The only user was radeon/r200, which was using it to have something that
looks a lot like an enum value return a float from the config option.
Just convert that option to a plain float value (for compat with existing
driconfs) with the min and max of its disjoint range as the range.  The
driver's option handling code already correctly deals with other values in
the range.

The disjoint range support was a bunch of extra parsing for this dead
driver, and made turning driconf into static structs difficult.

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6916>
src/mesa/drivers/dri/radeon/radeon_screen.c
src/util/00-mesa-defaults.conf
src/util/tests/xmlconfig.cpp
src/util/xmlconfig.c
src/util/xmlconfig.h