i965/screen: Allow drirc to set 'allow_rgb10_configs' again.
authorMario Kleiner <mario.kleiner.de@gmail.com>
Thu, 18 Jan 2018 06:16:20 +0000 (08:16 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 18 Jan 2018 06:18:47 +0000 (08:18 +0200)
commitd67ef485804cab53499dd763db136070ef107a16
treee8475f7c394ac18a8df1ad98c88e747e73ddffc7
parenteac629deb68115e9ab520212c1af779eca4f38a3
i965/screen: Allow drirc to set 'allow_rgb10_configs' again.

Since setup of ALLOW_RGB10_CONFIGS was moved to i965's own
brw_config_options.xml, this was hard-coded to false and
could not be overriden by drirc. Add some parsing into
i965's private screen->optionCache to enable drirc again.

Fixes: b391fb26df9f1b ("dri_util: remove ALLOW_RGB10_CONFIGS option (v2)")
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Cc: Marek Olšák <marek.olsak@amd.com>
Cc: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c